|author||Stephen Kelly <firstname.lastname@example.org>||2012-05-24 14:35:45 +0200|
|committer||Qt by Nokia <email@example.com>||2012-06-20 15:45:07 +0200|
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 <firstname.lastname@example.org>
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
@@ -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.