summaryrefslogtreecommitdiffstats
path: root/src/qml/qml/qqmllist.h
diff options
context:
space:
mode:
authorFabian Kosmale <fabian.kosmale@qt.io>2020-11-21 11:44:09 +0100
committerQt Cherry-pick Bot <cherrypick_bot@qt-project.org>2020-11-24 15:35:25 +0000
commitd037cc4ecc7d8b3094e558b20eb4b637a63d0f53 (patch)
tree72b5e4b8f2a2b58ed0d8f607880f26dd93c3e9d8 /src/qml/qml/qqmllist.h
parentb9419216daf482a3b6c2bf9e7da5381f52e33650 (diff)
Mark QQmlListProperty as a QML list in QMetaTypev6.0.0-rc1
Change-Id: Icd92121bb65ffca1135c1ef69b90d8a8955c1df0 Reviewed-by: Ulf Hermann <ulf.hermann@qt.io> (cherry picked from commit b788ef085c66d95aa75052c079d9d2fe15bc7f16) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
Diffstat (limited to 'src/qml/qml/qqmllist.h')
-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)