qt6-bb10/src/gui
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
..
accessible Add virtual destructors to accessible interfaces. 2012-01-04 04:27:02 +01:00
egl Remove Windows and X11 from src/widgets/platforms. 2011-10-28 16:29:13 +02:00
image blitter: Base QBlitterPaintEngine on QRasterPaintEngine 2012-01-02 10:44:00 +01:00
kernel Refactor QVariant handlers. 2012-01-04 14:25:25 +01:00
math3d Optimized QMatrix4x4 by improving how 'flagBits' are used. 2011-08-29 10:16:01 +02:00
opengl Export QOpenGLTextureCache 2012-01-04 08:00:28 +01:00
painting Inline some methods in qgrayraster. 2012-01-02 12:53:34 +01:00
text Fix crash in positionInLigature 2012-01-02 16:43:02 +01:00
util Added base 10 to be used with QIntValidator. 2011-11-14 10:34:41 +01:00
gui.pro Integrate testcocoon support into Qt build system. 2011-11-15 07:21:48 +01:00