diff options
Diffstat (limited to 'odb/qt/containers/qvector-traits.hxx')
-rw-r--r-- | odb/qt/containers/qvector-traits.hxx | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/odb/qt/containers/qvector-traits.hxx b/odb/qt/containers/qvector-traits.hxx index c483b0c..516475d 100644 --- a/odb/qt/containers/qvector-traits.hxx +++ b/odb/qt/containers/qvector-traits.hxx @@ -1,5 +1,4 @@ // file : odb/qt/containers/qvector-traits.hxx -// copyright : Copyright (c) 2009-2019 Code Synthesis Tools CC // license : GNU GPL v2; see accompanying LICENSE file #ifndef ODB_QT_CONTAINER_QVECTOR_TRAITS_HXX @@ -7,6 +6,14 @@ #include <odb/pre.hxx> +#include <QtCore/QtGlobal> // QT_VERSION + +// In Qt 6 QVector is an alias for QList. +// +#if QT_VERSION >= 0x060000 +#include <odb/qt/containers/qlist-traits.hxx> +#else + #include <QtCore/QVector> #include <odb/container-traits.hxx> @@ -68,6 +75,8 @@ namespace odb }; } +#endif + #include <odb/post.hxx> #endif // ODB_QT_CONTAINER_QVECTOR_TRAITS_HXX |