qt5base-lts/tests/auto/corelib/kernel
Jędrzej Nowacki 08863b6fda Refactor QVariant handlers.
QVariant implementation is based on delegation to a handler. The handler
has rather simple construction, it is a set of function that implements
a switch statement over known types and redirects calls to a right
method of an encapsulated types instance. Unfortunately after qt
modularization project, it is not easy to use types directly from
different modules, as they can be undefined or completely unaccessible.
Which means that each module has to implement own handler to cooperate
correctly with QVariant. We can suspect that list of modules known to
QVariant will grow and it is not limited to GUI, Widgets and Core,
therefore it would be nice to have an unified, from performance and
source code point of view, way of working with handlers.

This patch is an attempt to cleanup handlers. Keynotes:
- Each handler is working only on types defined in the same module
- Core handler implements handling of primitive types too
- Custom types have an own handler
- Each handler is independent which means that dispatch between handlers
  is done on QVariant level
- Handlers might be registered / unregistered using same interface

Change-Id: Ib096df65e2c4ce464bc7a684aade5af7d1264c24
Reviewed-by: Olivier Goffart <ogoffart@woboq.com>
2012-01-04 14:25:25 +01:00
..
qcoreapplication Add Qt::TimerType argument to QAbstractEventDispatcher::registerTimer() 2012-01-02 10:44:00 +01:00
qeventloop Cleanup corelib autotests. 2011-12-28 04:48:11 +01:00
qitemmodel Change the default value of QSortFilterProxyModel::dynamicSortFilter 2012-01-02 16:43:02 +01:00
qmath Cleanup corelib autotests 2011-11-11 02:45:05 +01:00
qmetaobject Cleanup corelib autotests. 2011-12-28 04:48:11 +01:00
qmetaobjectbuilder qtbase tests: Fix some warnings 2011-11-21 09:58:23 +01:00
qmetaproperty Cleanup corelib autotests 2011-11-11 02:45:05 +01:00
qmetatype Allow QMetaType to register information about movability 2011-12-22 13:20:40 +01:00
qmimedata Fix linking of autotests on Windows. 2011-11-29 12:28:30 +01:00
qobject Use true and false in preference to TRUE and FALSE in tests. 2012-01-03 02:57:12 +01:00
qpointer Remove QMetaObject guards and deprecate QPointer. 2011-12-10 16:11:48 +01:00
qsignalmapper Remove TESTED_CLASS/TESTED_FILES comments from tests. 2011-12-06 02:19:25 +01:00
qsocketnotifier Cleanup corelib autotests. 2011-12-28 04:48:11 +01:00
qtimer Remove TESTED_CLASS/TESTED_FILES comments from tests. 2011-12-06 02:19:25 +01:00
qtranslator Remove TESTED_CLASS/TESTED_FILES comments from tests. 2011-12-06 02:19:25 +01:00
qvariant Refactor QVariant handlers. 2012-01-04 14:25:25 +01:00
qwineventnotifier Remove TESTED_CLASS/TESTED_FILES comments from tests. 2011-12-06 02:19:25 +01:00
kernel.pro Move QAbstractItemModel into a separate directory. 2011-12-13 02:23:42 +01:00