aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/qml/qqml.h
diff options
context:
space:
mode:
authorUlf Hermann <ulf.hermann@qt.io>2020-04-17 12:13:25 +0200
committerUlf Hermann <ulf.hermann@qt.io>2020-06-09 08:01:03 +0200
commit9752ad5af7c7ae188250ab5b8b65c74f70d57b41 (patch)
tree19c1b9a8ed6444b626bba339679e1788562e6569 /src/qml/qml/qqml.h
parent1d510acc29dd2cebfb72364b8b933287f54c5579 (diff)
Add methods to programatically insert qmldir import statements
We need this for controls2 to select the style at runtime. Change-Id: I23b6ab962a647b519d5af019eade27f89e1e4e00 Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Diffstat (limited to 'src/qml/qml/qqml.h')
-rw-r--r--src/qml/qml/qqml.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/qml/qml/qqml.h b/src/qml/qml/qqml.h
index 9c896e6322..ee3afa768a 100644
--- a/src/qml/qml/qqml.h
+++ b/src/qml/qml/qqml.h
@@ -675,6 +675,9 @@ QT_WARNING_POP
Q_QML_EXPORT bool qmlProtectModule(const char* uri, int majVersion);
Q_QML_EXPORT void qmlRegisterModule(const char *uri, int versionMajor, int versionMinor);
+Q_QML_EXPORT void qmlRegisterModuleImport(const char *uri, int majorVersion, const char *import);
+Q_QML_EXPORT void qmlUnregisterModuleImport(const char *uri, int majorVersion, const char *import);
+
template<typename T>
QObject *qmlAttachedPropertiesObject(const QObject *obj, bool create = true)
{