aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml
diff options
context:
space:
mode:
authorFabian Kosmale <fabian.kosmale@qt.io>2020-11-21 11:44:09 +0100
committerFabian Kosmale <fabian.kosmale@qt.io>2020-11-24 10:40:43 +0000
commitb788ef085c66d95aa75052c079d9d2fe15bc7f16 (patch)
tree4227a429e3d0531a28b51be702fd4fb4e25d0202 /src/qml
parent996bfb0c979c3f111ed11768cc81768f7001ce60 (diff)
Mark QQmlListProperty as a QML list in QMetaType
Pick-to: 6.0.0 dev Change-Id: Icd92121bb65ffca1135c1ef69b90d8a8955c1df0 Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
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)