qt5base-lts/tests/auto
Marc Mutz 5fd8dd19ea QtWidgets: use nullary version of qRegisterMetaType<T>("T")
Using qRegisterMetaType<T>() has the advantage that multiple calls
during a program run are much more efficient, since an inlined
atomic is used to store the result. It also ensures that
Q_DECLARE_METATYPE(T) has been used, whereas qRegisterMetaType<T>("T")
will happily register anything.

Had to add Q_DECLARE_METATYPE to QFileInfo, for
QList<QPair<QString,QFileInfo>> of QFileSystemModel to work with
the partial specialisations of Q_DECLARE_METATYPE for QList, QPair.

In order to synchronize this change with other modules that did
their own Q_DECLARE_METATYPE(QFileInfo), a sync macro is defined
that can be tested in other modules, and will later be removed again.

Change-Id: I3004664e07e64cd885d5a03a57ff4e4379804aec
Reviewed-by: Stephen Kelly <stephen.kelly@kdab.com>
2012-07-25 13:33:05 +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 Remove insignification from QtConcurrentFilter test. 2012-04-19 13:26:51 +02:00
corelib Split the QGuiVariant test from the Core one. 2012-07-25 00:48:33 +02:00
dbus Make test work on Mac OS X 2012-06-23 16:25:47 +02:00
gui Deprecate the qWaitForWindowShown(QWindow *) method. 2012-07-25 07:24:49 +02:00
guiapplauncher Update the documentation after moving examples. 2011-07-05 21:19:08 +02:00
network Fix some spelling errors 2012-07-11 14:52:37 +02:00
opengl Implement waitForWindowExposed and friends for widget windows. 2012-07-20 09:27:28 +02:00
other Split QWidgetsVariant tests into a separate testcase. 2012-07-23 17:47:51 +02:00
printsupport Replace Q_WS_ in tests by Q_OS_ or check platform names. 2012-07-16 16:30:55 +02:00
shared Expose QPA API under qpa/* 2012-05-07 20:25:24 +02:00
sql Fix error when inserting to tables with datetime fields with QODBC 2012-07-16 23:48:10 +02:00
testlib Add QSignalSpy::wait() method. 2012-07-25 13:31:14 +02:00
tools Add some tests to note that private signals can't be overloads. 2012-07-13 19:21:55 +02:00
widgets QtWidgets: use nullary version of qRegisterMetaType<T>("T") 2012-07-25 13:33:05 +02:00
xml remove some qmake -project boilerplate from project files 2012-06-19 16:39:52 +02:00
auto.pro Tests: Fix printsupport profiles. 2012-07-12 11:15:58 +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