qt5base-lts/tests/auto/widgets
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
..
dialogs Remove usage of deprecated qWaitForWindowShown in dialog tests. 2012-07-24 00:08:28 +02:00
effects Implement waitForWindowExposed and friends for widget windows. 2012-07-20 09:27:28 +02:00
graphicsview Deprecate the qWaitForWindowShown(QWindow *) method. 2012-07-25 07:24:49 +02:00
itemviews QtWidgets: use nullary version of qRegisterMetaType<T>("T") 2012-07-25 13:33:05 +02:00
kernel Deprecate the qWaitForWindowShown(QWindow *) method. 2012-07-25 07:24:49 +02:00
styles Tests: Replace deprecated QPixmap::grabWidget() by QWidget::grab(). 2012-07-20 16:47:11 +02:00
util Implement waitForWindowExposed and friends for widget windows. 2012-07-20 09:27:28 +02:00
widgets Tests: Replace deprecated QPixmap::grabWidget() by QWidget::grab(). 2012-07-20 16:47:11 +02:00
widgets.pro Moved tests into integrationtests/ and widgets/ 2011-10-20 19:45:41 +02:00