diff options
author | Morten Sorvig <morten.sorvig@nokia.com> | 2011-06-21 13:40:57 +0200 |
---|---|---|
committer | Morten Sorvig <morten.sorvig@nokia.com> | 2011-06-22 09:47:49 +0200 |
commit | 4efaf305f51d09e214645a18a7bfa62bc36e2c61 (patch) | |
tree | 6454f785f42e1e2be1d1422f81e3bbe1ad8b1158 /src/gui/kernel/qplatformintegration_qpa.h | |
parent | 18c1d671371ef8d94506a9a6dd6ee3680ef80fd3 (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.h')
-rw-r--r-- | src/gui/kernel/qplatformintegration_qpa.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gui/kernel/qplatformintegration_qpa.h b/src/gui/kernel/qplatformintegration_qpa.h index c1934ec83a..23353b715c 100644 --- a/src/gui/kernel/qplatformintegration_qpa.h +++ b/src/gui/kernel/qplatformintegration_qpa.h @@ -63,6 +63,7 @@ class QPlatformPrinterSupport; class QPlatformDrag; class QPlatformGLContext; class QGuiGLFormat; +class QAbstractEventDispatcher; class Q_GUI_EXPORT QPlatformIntegration { @@ -88,6 +89,9 @@ public: virtual bool isVirtualDesktop() { return false; } virtual QPixmap grabWindow(WId window, int x, int y, int width, int height) const; +// Event dispatcher: + virtual QAbstractEventDispatcher *createEventDispatcher() const = 0; + //Deeper window system integrations virtual QPlatformFontDatabase *fontDatabase() const; #ifndef QT_NO_CLIPBOARD |