aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/qml/qqmlmetatype_p.h
diff options
context:
space:
mode:
authorUlf Hermann <ulf.hermann@qt.io>2019-12-20 14:08:40 +0100
committerUlf Hermann <ulf.hermann@qt.io>2019-12-20 16:29:44 +0100
commitdfb4778f6ae2c21c4de2d34b58a6dad465af14b0 (patch)
tree277428ce99b5ad5f665542b266ba5da1ad8a6f26 /src/qml/qml/qqmlmetatype_p.h
parent813d70051c74b83e2e65a1a3358b759b50924a83 (diff)
Remove module registrations when unloading them
Otherwise you cannot re-load the same registrations again. This is exercised on macOS in multiple places once we start generating registrations for our own imports. Change-Id: Id6b07e60b77a748a76418ff462df332c928c0885 Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
Diffstat (limited to 'src/qml/qml/qqmlmetatype_p.h')
-rw-r--r--src/qml/qml/qqmlmetatype_p.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/qml/qml/qqmlmetatype_p.h b/src/qml/qml/qqmlmetatype_p.h
index ed4675046d..80126cbffb 100644
--- a/src/qml/qml/qqmlmetatype_p.h
+++ b/src/qml/qml/qqmlmetatype_p.h
@@ -200,6 +200,8 @@ public:
static void qmlInsertModuleRegistration(const QString &uri, int majorVersion,
void (*registerFunction)());
+ static void qmlRemoveModuleRegistration(const QString &uri, int majorVersion);
+
static bool qmlRegisterModuleTypes(const QString &uri, int majorVersion);
};