qt5base-lts/tests/auto
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
..
bic Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
compilerwarnings/data Remove uilib and QtUiTools from QtBase 2011-09-13 20:11:40 +02:00
corelib Refactor QVariant handlers. 2012-01-04 14:25:25 +01:00
dbus Fix crashes and non-portable functionality in QDBusDemarshaller QByteArray extraction 2011-12-25 21:58:57 +01:00
gui Use true and false in preference to TRUE and FALSE in tests. 2012-01-03 02:57:12 +01:00
guiapplauncher Update the documentation after moving examples. 2011-07-05 21:19:08 +02:00
network Use true and false in preference to TRUE and FALSE in tests. 2012-01-03 02:57:12 +01:00
opengl Remove TESTED_CLASS/TESTED_FILES comments from tests. 2011-12-06 02:19:25 +01:00
other Accessibility: extend listview unit test. 2012-01-04 02:17:20 +01:00
sql Check driver validity before using it 2011-12-12 10:43:44 +01:00
testlib Add Qt::TimerType argument to QAbstractEventDispatcher::registerTimer() 2012-01-02 10:44:00 +01:00
tools Revert "Revert "Add QObject::objectNameChanged(con... signal"" 2011-12-20 11:15:21 +01:00
v8 qtbase tests: Fix some warnings 2011-11-21 09:58:23 +01:00
widgets Use true and false in preference to TRUE and FALSE in tests. 2012-01-03 02:57:12 +01:00
xml Use true and false in preference to TRUE and FALSE in tests. 2012-01-03 02:57:12 +01:00
auto.pro Re-enable 'check' target for tests/auto/gui on Mac OS X 2011-12-09 02:39:06 +01:00
network-settings.h Fix sanity check of network test server 2011-11-28 08:13:41 +01:00
platformquirks.h Remove unused PlatformQuirks functions. 2011-11-05 02:31:07 +01:00
test.pl Update licenseheader text in source files for qtbase Qt module 2011-05-24 12:34:08 +03:00