qt5base-lts/tests/auto/corelib
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
..
animation Avoid repeatedly registering the same meta-type 2011-12-28 08:16:47 +01:00
codecs Improve QTextCodec::codecForLocale() test. 2011-12-29 13:27:17 +01:00
concurrent Use QVERIFY2 to output verbose failure messages. 2011-12-30 02:07:50 +01:00
global Remove TESTED_CLASS/TESTED_FILES comments from tests. 2011-12-06 02:19:25 +01:00
io fix invalid connection in tst_QProcess::lockupsInStartDetached 2012-01-04 06:01:33 +01:00
itemmodels Change the default value of QSortFilterProxyModel::dynamicSortFilter 2012-01-02 16:43:02 +01:00
kernel Refactor QVariant handlers. 2012-01-04 14:25:25 +01:00
plugin Cleanup corelib autotests. 2011-12-28 04:48:11 +01:00
statemachine Cleanup corelib autotests. 2011-12-28 04:48:11 +01:00
thread Make sure tst_QThreadStorage finds its subprocess 2012-01-03 12:58:24 +01:00
tools Implement (and unit test) simple QVarLengthArray::first()/last(). 2012-01-02 15:08:19 +01:00
xml Remove TESTED_CLASS/TESTED_FILES comments from tests. 2011-12-06 02:19:25 +01:00
corelib.pro Move QAbstractItemModel into a separate directory. 2011-12-13 02:23:42 +01:00