summaryrefslogtreecommitdiffstats
path: root/src/gui/kernel/qplatformintegration_qpa.cpp
diff options
context:
space:
mode:
authorMorten Sorvig <morten.sorvig@nokia.com>2011-06-21 13:40:57 +0200
committerMorten Sorvig <morten.sorvig@nokia.com>2011-06-22 09:47:49 +0200
commit4efaf305f51d09e214645a18a7bfa62bc36e2c61 (patch)
tree6454f785f42e1e2be1d1422f81e3bbe1ad8b1158 /src/gui/kernel/qplatformintegration_qpa.cpp
parent18c1d671371ef8d94506a9a6dd6ee3680ef80fd3 (diff)
Add lighthouse event dispatcher API.
Platform plugin creation is now moved forward in order to have a platform plugin instance at event dispatcher creation time. Plugins are now responsible for implementing PlatformIntegration::createEventDispatcher and returning an QAbstractEventDispatcher subclass.
Diffstat (limited to 'src/gui/kernel/qplatformintegration_qpa.cpp')
-rw-r--r--src/gui/kernel/qplatformintegration_qpa.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/gui/kernel/qplatformintegration_qpa.cpp b/src/gui/kernel/qplatformintegration_qpa.cpp
index fe90ce86aa..773f1a31f6 100644
--- a/src/gui/kernel/qplatformintegration_qpa.cpp
+++ b/src/gui/kernel/qplatformintegration_qpa.cpp
@@ -214,6 +214,13 @@ QPlatformGLContext *QPlatformIntegration::createPlatformGLContext(const QSurface
QRect(x,y,width,height).
*/
+/*!
+ \fn QAbstractEventDispatcher *createEventDispatcher() const
+
+ Factory function for the event dispatcher. The platform plugin
+ must create and and return a QAbstractEventDispatcher subclass when
+ this function is called.
+*/
bool QPlatformIntegration::hasCapability(Capability cap) const
{