qt5base-lts/tests/auto
Kent Hansen 9a0b7348b3 Make QSignalSpy copy QVariant parameters directly
Previously, a QVariant parameter would be wrapped inside a new
QVariant, and you would have to cast the QSignalSpy's QVariant to
a QVariant to get the actual value. This behavior was unintuitive
and undocumented.

Check if the parameter type is QVariant, and copy it directly if it
is. This makes the QSignalSpy's QVariant directly usable (no need to
"unwrap" the value in user code).

Existing tests that use QSignalSpy together with QVariant parameters
(such as tst_QPropertyAnimation::valueChanged()) and do cast the
QVariant parameter to a QVariant, continue to work after this change;
this is because qvariant_cast<QVariant>() returns its input value
(unchanged) when the type is not QMetaType::QVariant.

Task-number: QTBUG-21645
Change-Id: Ibfb171edd60c0d3f7ca1d5419e5c5f3d0380d5b3
Reviewed-by: Jason McDonald <jason.mcdonald@nokia.com>
2012-08-07 11:15:55 +02:00
..
cmake Add tests of the various testlib definition possibilities. 2012-07-24 08:44:27 +02:00
compilerwarnings/data Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
concurrent Set the Qt API level to compatibility mode in all tests. 2012-08-01 15:37:46 +02:00
corelib Set the Qt API level to compatibility mode in all tests. 2012-08-01 15:37:46 +02:00
dbus Set the Qt API level to compatibility mode in all tests. 2012-08-01 15:37:46 +02:00
gui Remove some dead code wrapped in Q_WS_QWS. 2012-08-03 11:24:28 +02:00
guiapplauncher
network Remove some dead code wrapped in Q_WS_QWS. 2012-08-03 11:24:28 +02:00
opengl Remove some dead code wrapped in Q_WS_QWS. 2012-08-03 11:24:28 +02:00
other Revert "Move QWindowSystemInterface out of qpa." 2012-08-03 00:38:09 +02:00
printsupport Set the Qt API level to compatibility mode in all tests. 2012-08-01 15:37:46 +02:00
shared Expose QPA API under qpa/* 2012-05-07 20:25:24 +02:00
sql Set the Qt API level to compatibility mode in all tests. 2012-08-01 15:37:46 +02:00
testlib Make QSignalSpy copy QVariant parameters directly 2012-08-07 11:15:55 +02:00
tools uic-Autotest: Remove SRCDIR-define, add stdout-test. 2012-08-02 20:38:54 +02:00
widgets Remove some dead code wrapped in Q_WS_QWS. 2012-08-03 11:24:28 +02:00
xml Set the Qt API level to compatibility mode in all tests. 2012-08-01 15:37:46 +02:00
auto.pro tests: fixed check for QtOpenGL 2012-07-30 06:06:12 +02:00
network-settings.h Fix auto tests build with gcc 4.7 2012-05-23 00:42:20 +02:00
platformquirks.h Remove #ifdef Q_WS_ / include / #endif conditionals. 2012-07-16 16:30:55 +02:00
test.pl Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00