qt5base-lts/tests/auto/corelib/tools/qsharedpointer
Stephen Kelly 668efc29fd Add some internal API for extracting a QSharedPointer<T> from QVariant.
The T must be derived from QObject, or it will fail to compile.

This will allow scripting or other 'wrapping' and runtime environments like
QtDeclarative to handle QSharedPointers to types derived from QObject
properly. A QSharedPointer<T> can be inserted into a QVariant, and
where T derives from QObject, a QSharedPointer<QObject> can be
extracted from the QVariant, and its properties are then accessible.

Change-Id: I68d6d89aceceb019267bd7301baa2047f9c09b90
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
2012-06-20 15:45:07 +02:00
..
.gitignore Moving relevant tests to corelib/tools 2011-09-01 13:07:23 +02:00
externaltests.cpp tst_qsharedpointer: Fix auto test fail under Windows 7 2012-03-15 11:40:50 +01:00
externaltests.h Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
externaltests.pri Fixed qsharedpointer unittest to run from installation directory 2012-02-10 03:02:07 +01:00
forwarddeclared.cpp Remove "delete value" from QSharedPointer 2012-06-12 20:09:09 +02:00
forwarddeclared.h Remove "delete value" from QSharedPointer 2012-06-12 20:09:09 +02:00
qsharedpointer.pro Remove "delete value" from QSharedPointer 2012-06-12 20:09:09 +02:00
tst_qsharedpointer.cpp Add some internal API for extracting a QSharedPointer<T> from QVariant. 2012-06-20 15:45:07 +02:00
wrapper.cpp Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
wrapper.h Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00