qt5base-lts/tests/auto/corelib/kernel
Stephen Kelly ae85d7c965 Treat pointers to QObject derived types in QVariant specially.
It is possible to do this for example:

QVariant v = QVariant::fromValue<MyCustomQObject*>();
QObject *object = v.value<QObject*>();

This means that if a QVariant contains a pointer to a QObject
derived type, third parties can extract a QObject* and use its
properties without knowing the concrete type.

This is a source compatible change.

Change-Id: Iee9a9437e99cc2f40d1a4bfea47275482ef7161f
Reviewed-by: Jędrzej Nowacki <jedrzej.nowacki@nokia.com>
2012-02-08 14:43:18 +01:00
..
qcoreapplication Add the event loop quitlock feature to QtCore. 2012-01-31 23:22:15 +01:00
qeventloop Add the event loop quitlock feature to QtCore. 2012-01-31 23:22:15 +01:00
qmath Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
qmetaobject Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
qmetaobjectbuilder Initialize dynamic meta object extradata. 2012-02-08 09:53:23 +01:00
qmetaproperty Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
qmetatype Detect incompatibilities in repeated type registration 2012-02-07 09:47:51 +01:00
qmimedata Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
qobject Align QVariant::UserType and QMetaType::User 2012-02-07 08:52:32 +01:00
qpointer Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
qsignalmapper Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
qsocketnotifier Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
qtimer Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
qtranslator Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
qvariant Treat pointers to QObject derived types in QVariant specially. 2012-02-08 14:43:18 +01:00
qwineventnotifier Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
kernel.pro Add missing subdirectory to kernel.pro file. 2012-01-10 01:25:45 +01:00