path: root/dist
diff options
authorStephen Kelly <>2012-05-24 14:35:45 +0200
committerQt by Nokia <>2012-06-20 15:45:07 +0200
commit579ea489a40ae0240f22c3d31bde1fc2cd8aaf15 (patch)
treeb2d2e0a950af75d8e230dbe41e4b0f3f31ae308e /dist
parent668efc29fd85bbae2395a4eca8d0ad71ad6ee3d1 (diff)
Record if a metatype is a smart pointer to a QObject derived.
This allows QVariant/QMetaType software (such as QtDeclarative) to deal with smart pointers in a similar way to how they can deal with naked pointers (accessing properties etc). This also adds a requirement that T be fully defined when QSharedPointer<T> is inserted into a QVariant. Change-Id: I29e12b8a6aa5f4aadbd62f92b89bc238f64b5725 Reviewed-by: Jędrzej Nowacki <>
Diffstat (limited to 'dist')
1 files changed, 3 insertions, 0 deletions
diff --git a/dist/changes-5.0.0 b/dist/changes-5.0.0
index 7ddb17f4d1..76cdd0abcb 100644
--- a/dist/changes-5.0.0
+++ b/dist/changes-5.0.0
@@ -168,6 +168,9 @@ information about a particular change.
* Q_DECLARE_METATYPE(Foo*) now requires that Foo is fully defined. In
cases where a forward declared type should be used as a metatype,
Q_DECLARE_OPAQUE_POINTER(Foo*) can be used to allow that.
+ * Similarly, Q_DECLARE_METATYPE(QSharedPointer<Foo>), and
+ Q_DECLARE_METATYPE(QWeakPointer<Foo>) require Foo to be fully defined. Again
+ though, Q_DECLARE_OPAQUE_POINTER(Foo*) can be used to allow that.
- QItemEditorFactory