qt5base-lts/tests/auto/widgets/itemviews
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
..
qabstractitemview Implement waitForWindowExposed and friends for widget windows. 2012-07-20 09:27:28 +02:00
qcolumnview Add CONFIG+=parallel_test to suspected parallel-safe tests. 2012-05-28 07:33:01 +02:00
qdatawidgetmapper Add CONFIG+=parallel_test to suspected parallel-safe tests. 2012-05-28 07:33:01 +02:00
qdirmodel Replace Q_WS_ in tests by Q_OS_ or check platform names. 2012-07-16 16:30:55 +02:00
qfileiconprovider QtWidgets: use nullary version of qRegisterMetaType<T>("T") 2012-07-25 13:33:05 +02:00
qheaderview QHeaderView - adding an auto test with saveState and restoreState 2012-07-05 13:13:58 +02:00
qitemdelegate Implement waitForWindowExposed and friends for widget windows. 2012-07-20 09:27:28 +02:00
qitemeditorfactory Add CONFIG+=parallel_test to suspected parallel-safe tests. 2012-05-28 07:33:01 +02:00
qitemview Fix qitemview and qdatetimeedit autotest builds for WinCE. 2012-06-21 00:58:29 +02:00
qlistview Implement waitForWindowExposed and friends for widget windows. 2012-07-20 09:27:28 +02:00
qlistwidget Implement waitForWindowExposed and friends for widget windows. 2012-07-20 09:27:28 +02:00
qtableview Add CONFIG+=parallel_test to suspected parallel-safe tests. 2012-05-28 07:33:01 +02:00
qtablewidget Add CONFIG+=parallel_test to suspected parallel-safe tests. 2012-05-28 07:33:01 +02:00
qtreeview Implement waitForWindowExposed and friends for widget windows. 2012-07-20 09:27:28 +02:00
qtreewidget Implement waitForWindowExposed and friends for widget windows. 2012-07-20 09:27:28 +02:00
qtreewidgetitemiterator Add CONFIG+=parallel_test to suspected parallel-safe tests. 2012-05-28 07:33:01 +02:00
itemviews.pro Move QStandardItem/QStandardItemModel to QtGui 2012-06-29 22:42:19 +02:00