diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2021-11-30 12:46:50 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2021-11-30 12:46:50 +0200 |
commit | 150943426d3940b9e4b2871c11c9e01915193525 (patch) | |
tree | 4a02e1afce0b590d3a0d95838db0898d8160e337 /odb/qt/containers/qlinked-list-traits.hxx | |
parent | ecaafacbe574069d749f3a006259d179028f2399 (diff) |
Avoid using deprecated APIs in Qt6
Diffstat (limited to 'odb/qt/containers/qlinked-list-traits.hxx')
-rw-r--r-- | odb/qt/containers/qlinked-list-traits.hxx | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/odb/qt/containers/qlinked-list-traits.hxx b/odb/qt/containers/qlinked-list-traits.hxx index 378a472..463eb1d 100644 --- a/odb/qt/containers/qlinked-list-traits.hxx +++ b/odb/qt/containers/qlinked-list-traits.hxx @@ -6,6 +6,13 @@ #include <odb/pre.hxx> +#include <QtCore/QtGlobal> // QT_VERSION + +// QLinkedList is deprecated in Qt5 and we don't support it in Qt6 (where +// it has been move to a separate library). +// +#if QT_VERSION < 0x060000 + #include <QtCore/QLinkedList> #include <odb/container-traits.hxx> @@ -68,6 +75,8 @@ namespace odb }; } +#endif + #include <odb/post.hxx> #endif // ODB_QT_CONTAINER_QLINKED_LIST_TRAITS_HXX |