From d037cc4ecc7d8b3094e558b20eb4b637a63d0f53 Mon Sep 17 00:00:00 2001 From: Fabian Kosmale Date: Sat, 21 Nov 2020 11:44:09 +0100 Subject: Mark QQmlListProperty as a QML list in QMetaType Change-Id: Icd92121bb65ffca1135c1ef69b90d8a8955c1df0 Reviewed-by: Ulf Hermann (cherry picked from commit b788ef085c66d95aa75052c079d9d2fe15bc7f16) Reviewed-by: Qt Cherry-pick Bot --- src/qml/qml/qqmllist.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src') 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 #include #include +#include QT_BEGIN_NAMESPACE - class QObject; struct QMetaObject; @@ -230,6 +230,11 @@ private: QQmlListReferencePrivate* d; }; +namespace QtPrivate { +template +inline constexpr bool IsQmlListType> = true; +} + QT_END_NAMESPACE Q_DECLARE_METATYPE(QQmlListReference) -- cgit v1.2.3