diff options
author | Chris Adams <chris.adams@jollamobile.com> | 2014-12-01 14:32:57 +1000 |
---|---|---|
committer | Christopher Adams <chris.adams@jollamobile.com> | 2014-12-04 04:04:20 +0100 |
commit | b60bedf42ce7714180ced5597e8849b66a4d942b (patch) | |
tree | b2c64e22e8d92594cad9044a98d8a37e6239231d /src/imports | |
parent | 43c93a55e28a4655d8bc8d49a81b7802d7157244 (diff) |
Fix QtQuick2 module unload support
This commit ensures that the value type providers installed by the
QtQuick2 QML module during initialization are uninstalled when the
plugin is unloaded.
It also fixes a bug in the type compiler so that it now works with
types from plugins which get unloaded and then reloaded.
Task-number: QTBUG-43004
Change-Id: I4b3fb75aae65dfbc5de9c88701ed82514087ab7d
Reviewed-by: Matthew Vogt <matthew.vogt@qinetic.com.au>
Diffstat (limited to 'src/imports')
-rw-r--r-- | src/imports/qtquick2/plugin.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/imports/qtquick2/plugin.cpp b/src/imports/qtquick2/plugin.cpp index d5096fc6e8..ad3db2290f 100644 --- a/src/imports/qtquick2/plugin.cpp +++ b/src/imports/qtquick2/plugin.cpp @@ -49,6 +49,11 @@ public: Q_UNUSED(uri); QQmlQtQuick2Module::defineModule(); } + + ~QtQuick2Plugin() + { + QQmlQtQuick2Module::undefineModule(); + } }; //![class decl] |