From 4efaf305f51d09e214645a18a7bfa62bc36e2c61 Mon Sep 17 00:00:00 2001 From: Morten Sorvig Date: Tue, 21 Jun 2011 13:40:57 +0200 Subject: 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. --- src/gui/kernel/qplatformintegration_qpa.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/gui/kernel/qplatformintegration_qpa.cpp') 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 { -- cgit v1.2.3