aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/qml/qqmlmoduleregistration.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/qqmlmoduleregistration.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/qqmlmoduleregistration.h')
-rw-r--r--src/qml/qml/qqmlmoduleregistration.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/qml/qml/qqmlmoduleregistration.h b/src/qml/qml/qqmlmoduleregistration.h
index 8924724b48..6f553a2823 100644
--- a/src/qml/qml/qqmlmoduleregistration.h
+++ b/src/qml/qml/qqmlmoduleregistration.h
@@ -44,13 +44,16 @@
QT_BEGIN_NAMESPACE
+struct QQmlModuleRegistrationPrivate;
class Q_QML_EXPORT QQmlModuleRegistration
{
Q_DISABLE_COPY_MOVE(QQmlModuleRegistration)
-
public:
QQmlModuleRegistration(const char *uri, int majorVersion, void (*registerFunction)());
- ~QQmlModuleRegistration() = default;
+ ~QQmlModuleRegistration();
+
+private:
+ QQmlModuleRegistrationPrivate *d = nullptr;
};
QT_END_NAMESPACE