qt5base-lts/tests/auto/corelib/kernel/qvariant
Stephen Kelly eb24dfcccb Add template specialization of QMetaType for QObject derived pointers.
This makes it possible to do things like

QVariant::fromValue(new SomeObject);

without first using Q_DECLARE_METATYPE(Something*)

This functionality was originally part of
http://codereview.qt-project.org/#change,11710 but was rejected
because the functionality was based on specialization of
QVariant::fromValue which could be dangerous.

This new implementation doesn't have such danger.

Change-Id: I83fe941b6984be54469bc6b9191f6eacaceaa036
Reviewed-by: Jędrzej Nowacki <jedrzej.nowacki@nokia.com>
Reviewed-by: Olivier Goffart <ogoffart@woboq.com>
2012-03-06 13:37:17 +01:00
..
stream Cleanup mess in public type ids. 2012-01-25 21:08:08 +01:00
.gitignore Moving relevant tests to corelib/kernel 2011-09-01 12:42:14 +02:00
qvariant.pro tst_QVariant passes on Mac OS X 2012-02-15 08:59:29 +01:00
qvariant.qrc Cleanup mess in public type ids. 2012-01-25 21:08:08 +01:00
tst_qvariant.cpp Add template specialization of QMetaType for QObject derived pointers. 2012-03-06 13:37:17 +01:00