diff options
Diffstat (limited to 'src/qml/qml/qqmltype.cpp')
-rw-r--r-- | src/qml/qml/qqmltype.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/qml/qml/qqmltype.cpp b/src/qml/qml/qqmltype.cpp index 48fb2e2342..5a685ea646 100644 --- a/src/qml/qml/qqmltype.cpp +++ b/src/qml/qml/qqmltype.cpp @@ -536,6 +536,13 @@ QQmlType::ExtensionFunc QQmlType::extensionFunction() const return d->extraData.cd->extFunc; } +const QMetaObject *QQmlType::extensionMetaObject() const +{ + if (!d || d->regType != CppType) + return nullptr; + return d->extraData.cd->extMetaObject; +} + bool QQmlType::isExtendedType() const { if (!d) |