qt6-bb10/src/gui/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
..
kernel.pri Extend touch events. 2011-12-09 14:15:37 +01:00
qclipboard.cpp Get rid of the last traces of QMimeSource 2011-09-29 08:54:06 +02:00
qclipboard.h Get rid of the last traces of QMimeSource 2011-09-29 08:54:06 +02:00
qclipboard_qpa.cpp Add a platform API for QClipboard::ownsMode() 2011-06-20 12:50:16 +02:00
qcursor.cpp Remove Q_WS_ and Q_OS_SYMBIAN from QtGui. 2011-10-13 15:07:41 +02:00
qcursor.h Remove Q_WS_ and Q_OS_SYMBIAN from QtGui. 2011-10-13 15:07:41 +02:00
qcursor_p.h Remove Q_WS_ and Q_OS_SYMBIAN from QtGui. 2011-10-13 15:07:41 +02:00
qcursor_qpa.cpp Fix most warnings about assignments of QAtomicInt. 2011-10-31 11:29:08 +01:00
qdnd.cpp Fix compiler warnings. 2011-10-27 16:35:12 +02:00
qdnd_p.h Get rid of the last traces of QMimeSource 2011-09-29 08:54:06 +02:00
qdrag.cpp Merge remote branch 'staging/master' into refactor 2011-05-24 15:22:06 +02:00
qdrag.h Merge remote branch 'staging/master' into refactor 2011-05-24 15:22:06 +02:00
qevent.cpp Remove non-const getters marked for elimination. 2011-12-27 23:38:26 +01:00
qevent.h Remove non-const getters marked for elimination. 2011-12-27 23:38:26 +01:00
qevent_p.h Extend touch events. 2011-12-09 14:15:37 +01:00
qgenericplugin_qpa.cpp Update licenseheader text in source files for qtbase Qt module 2011-05-24 12:34:08 +03:00
qgenericplugin_qpa.h Update licenseheader text in source files for qtbase Qt module 2011-05-24 12:34:08 +03:00
qgenericpluginfactory_qpa.cpp Merge remote branch 'staging/master' into refactor 2011-05-24 15:22:06 +02:00
qgenericpluginfactory_qpa.h Update licenseheader text in source files for qtbase Qt module 2011-05-24 12:34:08 +03:00
qguiapplication.cpp Send ApplicationActivate and ApplicationDeactivate from QtGui. 2012-01-02 15:08:19 +01:00
qguiapplication.h Fix compiler warnings when using QT_DEPRECATED 2011-10-21 15:32:14 +02:00
qguiapplication_p.h Remove redundant touch processing in QtGui and widgets. 2011-12-14 13:17:19 +01:00
qguivariant.cpp Refactor QVariant handlers. 2012-01-04 14:25:25 +01:00
qinputpanel.cpp Remove handlesInputPanelVisibility() deprecation mechanism 2011-11-21 22:46:11 +01:00
qinputpanel.h Move input panel visibility ownership from QInputPanel to QPlatformInputContext 2011-10-11 16:03:25 +02:00
qinputpanel_p.h Remove handlesInputPanelVisibility() deprecation mechanism 2011-11-21 22:46:11 +01:00
qkeymapper.cpp Merge remote branch 'staging/master' into refactor 2011-05-24 15:22:06 +02:00
qkeymapper_p.h QtGui: Remove Q_WS and qpa. 2011-10-25 12:53:46 +02:00
qkeymapper_qpa.cpp Merge remote branch 'staging/master' into refactor 2011-05-24 15:22:06 +02:00
qkeysequence.cpp Handle -1 (Invalid Key) and Qt::Key_unknown gracefully in encodeString. 2012-01-02 09:04:12 +01:00
qkeysequence.h Merge remote branch 'staging/master' into refactor 2011-05-24 15:22:06 +02:00
qkeysequence_p.h Fix most warnings about assignments of QAtomicInt. 2011-10-31 11:29:08 +01:00
qopenglcontext.cpp Better handling of GLX / EGL errors. 2011-12-07 11:15:28 +01:00
qopenglcontext.h Build on Windows/clean build on Linux. 2011-08-29 14:39:07 +02:00
qopenglcontext_p.h Call invalidateResource() on QOpenGLMultiGroupSharedResource-owned resources 2011-11-17 17:40:06 +01:00
qpalette.cpp Replace implicit QAtomic* casts with explicit load()/store() 2011-10-27 18:57:38 +02:00
qpalette.h Merge remote branch 'staging/master' into refactor 2011-05-24 15:22:06 +02:00
qplatformclipboard_qpa.cpp Get rid of the last traces of QMimeSource 2011-09-29 08:54:06 +02:00
qplatformclipboard_qpa.h Add a platform API for QClipboard::ownsMode() 2011-06-20 12:50:16 +02:00
qplatformcursor_qpa.cpp Remove stale documentation. 2011-10-18 10:26:39 +02:00
qplatformcursor_qpa.h Remove stale documentation. 2011-10-18 10:26:39 +02:00
qplatformdrag_qpa.h Fix compiler warnings. 2011-10-27 16:35:12 +02:00
qplatforminputcontext_qpa.cpp Remove handlesInputPanelVisibility() deprecation mechanism 2011-11-21 22:46:11 +01:00
qplatforminputcontext_qpa.h Remove handlesInputPanelVisibility() deprecation mechanism 2011-11-21 22:46:11 +01:00
qplatformintegration_qpa.cpp Factor out QPlatformTheme from QPlatformPlugin. 2011-11-11 15:22:02 +01:00
qplatformintegration_qpa.h Factor out QPlatformTheme from QPlatformPlugin. 2011-11-11 15:22:02 +01:00
qplatformintegrationfactory_qpa.cpp Merge remote branch 'staging/master' into refactor 2011-05-24 15:22:06 +02:00
qplatformintegrationfactory_qpa_p.h Update licenseheader text in source files for qtbase Qt module 2011-05-24 12:34:08 +03:00
qplatformintegrationplugin_qpa.cpp Update licenseheader text in source files for qtbase Qt module 2011-05-24 12:34:08 +03:00
qplatformintegrationplugin_qpa.h Update licenseheader text in source files for qtbase Qt module 2011-05-24 12:34:08 +03:00
qplatformnativeinterface_qpa.cpp Fix compiler warnings. 2011-09-28 03:17:51 +02:00
qplatformnativeinterface_qpa.h Merge remote branch 'gerrit/master' into HEAD 2011-09-06 10:55:40 +02:00
qplatformopenglcontext_qpa.cpp Use a QFunctionPointer for getProcAddress() 2011-10-17 13:31:45 +02:00
qplatformopenglcontext_qpa.h Better handling of GLX / EGL errors. 2011-12-07 11:15:28 +01:00
qplatformscreen_qpa.cpp Added Orientation API to QScreen and QWindow. 2011-10-07 22:23:30 +02:00
qplatformscreen_qpa.h Added Orientation API to QScreen and QWindow. 2011-10-07 22:23:30 +02:00
qplatformsurface_qpa.cpp move QSurface into its own file. 2011-09-07 08:56:08 +02:00
qplatformsurface_qpa.h move QSurface into its own file. 2011-09-07 08:56:08 +02:00
qplatformtheme_qpa.cpp Factor out QPlatformTheme from QPlatformPlugin. 2011-11-11 15:22:02 +01:00
qplatformtheme_qpa.h Factor out QPlatformTheme from QPlatformPlugin. 2011-11-11 15:22:02 +01:00
qplatformthemefactory_qpa.cpp Factor out QPlatformTheme from QPlatformPlugin. 2011-11-11 15:22:02 +01:00
qplatformthemefactory_qpa_p.h Factor out QPlatformTheme from QPlatformPlugin. 2011-11-11 15:22:02 +01:00
qplatformthemeplugin_qpa.cpp Factor out QPlatformTheme from QPlatformPlugin. 2011-11-11 15:22:02 +01:00
qplatformthemeplugin_qpa.h Factor out QPlatformTheme from QPlatformPlugin. 2011-11-11 15:22:02 +01:00
qplatformwindow_qpa.cpp Fix spelling 2011-10-26 23:59:51 +02:00
qplatformwindow_qpa.h Added Orientation API to QScreen and QWindow. 2011-10-07 22:23:30 +02:00
qscreen.cpp Made more QScreen properties NOTIFY and added average DPI properties. 2011-11-30 19:04:18 +01:00
qscreen.h Made more QScreen properties NOTIFY and added average DPI properties. 2011-11-30 19:04:18 +01:00
qsessionmanager.h Remove Q_WS_ and Q_OS_SYMBIAN from QtGui. 2011-10-13 15:07:41 +02:00
qsessionmanager_qpa.cpp Merge remote branch 'staging/master' into refactor 2011-05-24 15:22:06 +02:00
qshortcutmap.cpp Move QShortcutMap to QtGui 2011-10-18 14:15:39 +02:00
qshortcutmap_p.h Make some more methods private 2011-10-18 14:15:54 +02:00
qstylehints.cpp Make qtbase build with Qt-in-namespace again 2011-09-28 12:18:37 +02:00
qstylehints.h Fix stale license headers from refactor branch 2011-09-15 03:27:45 +02:00
qsurface.cpp Make qtbase build with Qt-in-namespace again 2011-09-28 12:18:37 +02:00
qsurface.h move QSurface into its own file. 2011-09-07 08:56:08 +02:00
qsurfaceformat.cpp Re-added hellogl_es and ES 1 support for QOpenGLContext. 2011-10-31 12:37:51 +01:00
qsurfaceformat.h Use module prefixed include paths, avoids warnings in configure. 2011-09-28 03:18:26 +02:00
qt_gui_pch.h Merge remote branch 'staging/master' into refactor 2011-05-24 15:22:06 +02:00
qtouchdevice.cpp Extend touch events. 2011-12-09 14:15:37 +01:00
qtouchdevice.h Extend touch events. 2011-12-09 14:15:37 +01:00
qtouchdevice_p.h Extend touch events. 2011-12-09 14:15:37 +01:00
qwindow.cpp Add touchEvent() virtual to QWindow. 2011-12-12 17:27:19 +01:00
qwindow.h Add touchEvent() virtual to QWindow. 2011-12-12 17:27:19 +01:00
qwindow_p.h Added Orientation API to QScreen and QWindow. 2011-10-07 22:23:30 +02:00
qwindowdefs.h Remove Q_WS_ and Q_OS_SYMBIAN from QtGui. 2011-10-13 15:07:41 +02:00
qwindowdefs_win.h Use PlatformNativeInterface to obtain handles 2011-07-07 14:20:07 +02:00
qwindowsysteminterface_qpa.cpp Store the primary status in the touch point flags. 2011-12-12 12:28:29 +01:00
qwindowsysteminterface_qpa.h Store the primary status in the touch point flags. 2011-12-12 12:28:29 +01:00
qwindowsysteminterface_qpa_p.h Extend touch events. 2011-12-09 14:15:37 +01:00