path: root/dist
diff options
authorJędrzej Nowacki <>2012-02-03 12:54:25 +0100
committerQt by Nokia <>2012-02-07 08:53:18 +0100
commitb8cf1d6bdcaefaa610014a742808af3ab2c6fe06 (patch)
tree39d3acf1f3469b52024dff2cc159f7fe90ad9637 /dist
parent56265031b763736163f1a229a7e7e6b7aaec8a36 (diff)
Remove QMetaType::unregisterType().
The function hasn't been working properly. It was not well tested, for example it is undefined how QVariant should behave if it contains an instance of an unregistered type. Concept of unregistering types was inspired by plug-in system, but in most supported platforms we do not unload plug-ins. Idea of type unregistering may block optimizations in meta object system, because it would be not possible to cache a type id. QMetaType::type() could return different ids for the same name. Currently QMetaType::unregisterType() is not used in Qt. Change-Id: I878b6e8d91de99f9bcefeab73af2e2ba0bd0cba0 Reviewed-by: Prasanth Ullattil <> Reviewed-by: Bradley T. Hughes <> Reviewed-by: João Abecasis <> Reviewed-by: Lars Knoll <> Reviewed-by: Thiago Macieira <> Reviewed-by: Kent Hansen <>
Diffstat (limited to 'dist')
1 files changed, 3 insertions, 1 deletions
diff --git a/dist/changes-5.0.0 b/dist/changes-5.0.0
index 280b5d93f9..617b2d3d95 100644
--- a/dist/changes-5.0.0
+++ b/dist/changes-5.0.0
@@ -45,7 +45,9 @@ information about a particular change.
in Qt4, so these methods return a bool now. If your code used the undocumented
QBool, simply replace it with bool.
-- QMetaType::construct() has been renamed to QMetaType::create().
+- QMetaType:
+ * QMetaType::construct() has been renamed to QMetaType::create().
+ * QMetaType::unregisterType() has been removed.
- QTestLib:
* The QTRY_VERIFY and QTRY_COMPARE macros have been moved into QTestLib.