diff options
author | Sergio Martins <sergio.martins.qnx@kdab.com> | 2012-09-25 16:46:56 +0100 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2012-10-03 13:51:43 +0200 |
commit | 9695df4d44b228e7e778ff17d5cccac30967b1fd (patch) | |
tree | 78a543ead0f23e084ef891cd8e4d0a2893844c98 /src/gui/kernel/qwindowsysteminterface_p.h | |
parent | c79f0f0fbaf9a1a177d771dc39eb209270c280ba (diff) |
Introducing the PlatformPanel event type.
This event can be used by any platform plugin to implement
special application panels/overlayed menus.
Currently used by QNX only.
This replaces sending fake Qt::Key_Menu presses in the QNX
plugin. Qt::Key_Menu is already used when invoking context
menus with the keyboard.
Change-Id: I9c8f1743fd147a07c11883323800017376915ae1
Reviewed-by: Kevin Krammer <kevin.krammer@kdab.com>
Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
Reviewed-by: Nicolas Arnaud-Cormos <nicolas@kdab.com>
Reviewed-by: Paul Olav Tvete <paul.tvete@digia.com>
Diffstat (limited to 'src/gui/kernel/qwindowsysteminterface_p.h')
-rw-r--r-- | src/gui/kernel/qwindowsysteminterface_p.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/gui/kernel/qwindowsysteminterface_p.h b/src/gui/kernel/qwindowsysteminterface_p.h index b99ac71bb3..87dbeb2a9c 100644 --- a/src/gui/kernel/qwindowsysteminterface_p.h +++ b/src/gui/kernel/qwindowsysteminterface_p.h @@ -76,7 +76,8 @@ public: FileOpen, Tablet, TabletEnterProximity, - TabletLeaveProximity + TabletLeaveProximity, + PlatformPanel }; class WindowSystemEvent { @@ -325,6 +326,13 @@ public: qint64 uid; }; + class PlatformPanelEvent : public WindowSystemEvent { + public: + explicit PlatformPanelEvent(QWindow *w) + : WindowSystemEvent(PlatformPanel), window(w) { } + QPointer<QWindow> window; + }; + class WindowSystemEventList { QList<WindowSystemEvent *> impl; mutable QMutex mutex; |