From f1aabf7cee91b8ab08e775056f223f7ff6f8150a Mon Sep 17 00:00:00 2001 From: Fabian Kosmale Date: Tue, 16 Mar 2021 13:42:18 +0100 Subject: 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 (cherry picked from commit 0aad1a6c3cb6e1e1e9892a328c0aa84814d94a5a) Reviewed-by: Qt Cherry-pick Bot --- src/qml/types/qqmlmodelindexvaluetype_p.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/qml') 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) -- cgit v1.2.3