From c020bda61fe4a8108772309561d1f8e2f089aec0 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Thu, 16 Nov 2023 14:10:58 +0200 Subject: Deal with QVector being alias for QList in Qt 6 --- odb/qt/containers/qvector-traits.hxx | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'odb/qt/containers') diff --git a/odb/qt/containers/qvector-traits.hxx b/odb/qt/containers/qvector-traits.hxx index e3905f7..516475d 100644 --- a/odb/qt/containers/qvector-traits.hxx +++ b/odb/qt/containers/qvector-traits.hxx @@ -6,6 +6,14 @@ #include +#include // QT_VERSION + +// In Qt 6 QVector is an alias for QList. +// +#if QT_VERSION >= 0x060000 +#include +#else + #include #include @@ -67,6 +75,8 @@ namespace odb }; } +#endif + #include #endif // ODB_QT_CONTAINER_QVECTOR_TRAITS_HXX -- cgit v1.1