summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFabian Kosmale <fabian.kosmale@qt.io>2021-03-16 13:42:18 +0100
committerQt Cherry-pick Bot <cherrypick_bot@qt-project.org>2021-03-16 21:47:40 +0000
commitf1aabf7cee91b8ab08e775056f223f7ff6f8150a (patch)
tree28d2ddc4de25403669ba7020603c0afc73fc9788
parentbe430e6cdab96ec1766cf14e1916d4ddd86287d5 (diff)
Correctly specify extension type for model index value types
Those are not only foreign types, but also extension types which add additional properties. Thus we also need to mark them as QML_EXTENDED. Change-Id: I7a0469f7760887318a2b34bc5fcb85f011c0b0bf Reviewed-by: Ulf Hermann <ulf.hermann@qt.io> (cherry picked from commit 0aad1a6c3cb6e1e1e9892a328c0aa84814d94a5a) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
-rw-r--r--src/qml/types/qqmlmodelindexvaluetype_p.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/qml/types/qqmlmodelindexvaluetype_p.h b/src/qml/types/qqmlmodelindexvaluetype_p.h
index a0e4bf35e2..2c37d91c71 100644
--- a/src/qml/types/qqmlmodelindexvaluetype_p.h
+++ b/src/qml/types/qqmlmodelindexvaluetype_p.h
@@ -69,6 +69,7 @@ struct QQmlModelIndexValueType
Q_PROPERTY(quint64 internalId READ internalId CONSTANT FINAL)
Q_GADGET
QML_ANONYMOUS
+ QML_EXTENDED(QQmlModelIndexValueType)
QML_FOREIGN(QModelIndex)
QML_ADDED_IN_VERSION(2, 0)
@@ -102,6 +103,7 @@ struct QQmlPersistentModelIndexValueType
Q_PROPERTY(quint64 internalId READ internalId FINAL)
Q_GADGET
QML_ANONYMOUS
+ QML_EXTENDED(QQmlPersistentModelIndexValueType)
QML_FOREIGN(QPersistentModelIndex)
QML_ADDED_IN_VERSION(2, 0)
@@ -135,6 +137,7 @@ struct QQmlItemSelectionRangeValueType
Q_PROPERTY(QAbstractItemModel *model READ model FINAL)
Q_GADGET
QML_ANONYMOUS
+ QML_EXTENDED(QQmlItemSelectionRangeValueType)
QML_FOREIGN(QItemSelectionRange)
QML_ADDED_IN_VERSION(2, 0)