Record if a metatype is a smart pointer to a QObject derived.
authorStephen Kelly <stephen.kelly@kdab.com>
Thu, 24 May 2012 12:35:45 +0000 (14:35 +0200)
committerQt by Nokia <qt-info@nokia.com>
Wed, 20 Jun 2012 13:45:07 +0000 (15:45 +0200)
commit579ea489a40ae0240f22c3d31bde1fc2cd8aaf15
treeb2d2e0a950af75d8e230dbe41e4b0f3f31ae308e
parent668efc29fd85bbae2395a4eca8d0ad71ad6ee3d1
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 <jedrzej.nowacki@nokia.com>
dist/changes-5.0.0
src/corelib/kernel/qmetatype.h
src/corelib/tools/qsharedpointer.cpp
tests/auto/corelib/kernel/qmetatype/tst_qmetatype.cpp