From 50ba4ffdf48461d38f4dd2137a0fbbc916c9eb0a Mon Sep 17 00:00:00 2001 From: Ulf Hermann Date: Mon, 2 Nov 2020 12:15:40 +0100 Subject: QML: Allow singleton types to be extended It seems we never stated that singletons can not be extended in our documentation. Therefore this is technically a bug fix and doesn't need separate documentation. Change-Id: I7877289bd5a52ecf709f80ba1975137981ec65f0 Reviewed-by: Fabian Kosmale --- src/qml/qml/qqmltype_p_p.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/qml/qml/qqmltype_p_p.h') diff --git a/src/qml/qml/qqmltype_p_p.h b/src/qml/qml/qqmltype_p_p.h index 426b9ced37..2a375baa83 100644 --- a/src/qml/qml/qqmltype_p_p.h +++ b/src/qml/qml/qqmltype_p_p.h @@ -131,6 +131,8 @@ public: struct QQmlSingletonTypeData { QQmlType::SingletonInstanceInfo *singletonInstanceInfo; + QObject *(*extFunc)(QObject *); + const QMetaObject *extMetaObject; }; struct QQmlCompositeTypeData -- cgit v1.2.3