qt5base-lts/tests/auto
Marc Mutz 7e0562c5ff fix compilation with conforming compilers (e.g. GCC >= 4.7)
In qdbus_cast(), qMetaTypeId<QDBusArgument> as well as
qvariant_cast<QDBusArgument> are used. They don't depend
on any template argument of qdbus_cast(), so their
definitions need to be available at function template
definition instead of instantiation time.

But the necessary Q_DECLARE_METATYPE(QDBusArgument)
was at the end of the header, after the defintion of
qdbus_cast(), which is too late for conformin compilers.

Fixed by moving it up just after the QDBusArgument
definition.

Similarly, in tst_qdatetime and tst_qvector, the
Q_DECLARE_METATYPE() for Qt::DateFormat and QVector<int>,
and with it the specialisation of QMetaTypeId<>, were
issued after the first use of meta typing; too late for
conforming compilers.

Change-Id: I25ca0b06e68d5184597a22708404a8f2040b2de1
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
2012-07-10 03:24:15 +02:00
..
cmake Move the macros for invoking ctest to a shared location. 2012-07-03 01:08:25 +02:00
compilerwarnings/data Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
concurrent Remove insignification from QtConcurrentFilter test. 2012-04-19 13:26:51 +02:00
corelib fix compilation with conforming compilers (e.g. GCC >= 4.7) 2012-07-10 03:24:15 +02:00
dbus Make test work on Mac OS X 2012-06-23 16:25:47 +02:00
gui fixed unittest builds for wince 2012-07-06 21:14:09 +02:00
guiapplauncher Update the documentation after moving examples. 2011-07-05 21:19:08 +02:00
network fixed unittest builds for wince 2012-07-06 21:14:09 +02:00
opengl Mark qgl autotest as significant for Windows 2012-07-03 00:51:44 +02:00
other Flag consistently failing tests as expected fail tests. 2012-06-30 04:30:15 +02:00
printsupport Replace insignificant test with QEXPECT_FAIL. 2012-07-05 05:39:12 +02:00
shared Expose QPA API under qpa/* 2012-05-07 20:25:24 +02:00
sql Make sql autotests build without widgets 2012-06-07 07:25:27 +02:00
testlib Avoid load(testcase) for installing test helper apps 2012-07-04 02:46:27 +02:00
tools Update the moc no-keywords test for the signals replacement. 2012-07-09 15:55:15 +02:00
widgets QItemDelegate - add a more comprehensive test 2012-07-09 12:07:48 +02:00
xml remove some qmake -project boilerplate from project files 2012-06-19 16:39:52 +02:00
auto.pro fixed unittest builds for wince 2012-07-06 21:14:09 +02:00
network-settings.h Fix auto tests build with gcc 4.7 2012-05-23 00:42:20 +02:00
platformquirks.h Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
test.pl Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00