From 150943426d3940b9e4b2871c11c9e01915193525 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Tue, 30 Nov 2021 12:46:50 +0200 Subject: Avoid using deprecated APIs in Qt6 --- odb/qt/containers/qlinked-list-traits.hxx | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'odb/qt/containers/qlinked-list-traits.hxx') 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 +#include // 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 #include @@ -68,6 +75,8 @@ namespace odb }; } +#endif + #include #endif // ODB_QT_CONTAINER_QLINKED_LIST_TRAITS_HXX -- cgit v1.1