diff options
author | Thomas McGuire <thomas.mcguire@kdab.com> | 2012-03-29 16:13:52 +0200 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-03-30 21:51:14 +0200 |
commit | 4efd61c3cf3d25db1c60bf5c842837c5b24a05fa (patch) | |
tree | d9c45557d91bcda9198d28739da3931c489d7af8 /src/plugins/platforms/qnx/qqnxscreeneventhandler.h | |
parent | b5f343b3677a7c7f09d91d7d60f310717325e840 (diff) |
Add support for screen overlays / foreign windows
We're not the only one creating native windows. When using the
multimedia API, the multimedia library creates a video window
for video display. Here we need to deal with giving this video
window overlay a proper z-order, otherwise it will never get
visible.
Change-Id: Ibff0382ebee5cda87408b91c8181a4104fc4a1a3
Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
Reviewed-by: Kevin Krammer <kevin.krammer@kdab.com>
Reviewed-by: Robin Burchell <robin+qt@viroteck.net>
Diffstat (limited to 'src/plugins/platforms/qnx/qqnxscreeneventhandler.h')
-rw-r--r-- | src/plugins/platforms/qnx/qqnxscreeneventhandler.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/plugins/platforms/qnx/qqnxscreeneventhandler.h b/src/plugins/platforms/qnx/qqnxscreeneventhandler.h index 365351766c..06cc7a0b32 100644 --- a/src/plugins/platforms/qnx/qqnxscreeneventhandler.h +++ b/src/plugins/platforms/qnx/qqnxscreeneventhandler.h @@ -48,8 +48,9 @@ QT_BEGIN_NAMESPACE -class QQnxScreenEventHandler +class QQnxScreenEventHandler : public QObject { + Q_OBJECT public: QQnxScreenEventHandler(); @@ -58,11 +59,16 @@ public: static void injectKeyboardEvent(int flags, int sym, int mod, int scan, int cap); +Q_SIGNALS: + void newWindowCreated(void *window); + void windowClosed(void *window); + private: void handleKeyboardEvent(screen_event_t event); void handlePointerEvent(screen_event_t event); void handleTouchEvent(screen_event_t event, int qnxType); void handleCloseEvent(screen_event_t event); + void handleCreateEvent(screen_event_t event); private: enum { |