summaryrefslogtreecommitdiffstats
path: root/src/qml
diff options
context:
space:
mode:
Diffstat (limited to 'src/qml')
-rw-r--r--src/qml/qml/qqmllist.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/qml/qml/qqmllist.h b/src/qml/qml/qqmllist.h
index 7eb6d71670..3cc353ef30 100644
--- a/src/qml/qml/qqmllist.h
+++ b/src/qml/qml/qqmllist.h
@@ -43,10 +43,10 @@
#include <QtQml/qtqmlglobal.h>
#include <QtCore/qlist.h>
#include <QtCore/qvariant.h>
+#include <QtCore/QMetaType>
QT_BEGIN_NAMESPACE
-
class QObject;
struct QMetaObject;
@@ -230,6 +230,11 @@ private:
QQmlListReferencePrivate* d;
};
+namespace QtPrivate {
+template<typename T>
+inline constexpr bool IsQmlListType<QQmlListProperty<T>> = true;
+}
+
QT_END_NAMESPACE
Q_DECLARE_METATYPE(QQmlListReference)