From 579ea489a40ae0240f22c3d31bde1fc2cd8aaf15 Mon Sep 17 00:00:00 2001 From: Stephen Kelly Date: Thu, 24 May 2012 14:35:45 +0200 Subject: Record if a metatype is a smart pointer to a QObject derived. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 is inserted into a QVariant. Change-Id: I29e12b8a6aa5f4aadbd62f92b89bc238f64b5725 Reviewed-by: Jędrzej Nowacki --- dist/changes-5.0.0 | 3 +++ 1 file changed, 3 insertions(+) (limited to 'dist/changes-5.0.0') 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), and + Q_DECLARE_METATYPE(QWeakPointer) require Foo to be fully defined. Again + though, Q_DECLARE_OPAQUE_POINTER(Foo*) can be used to allow that. - QItemEditorFactory -- cgit v1.2.3