diff options
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 |