summaryrefslogtreecommitdiffstats
path: root/src/plugins/platforms/qnx/qqnxscreen.h
diff options
context:
space:
mode:
authorThomas McGuire <thomas.mcguire@kdab.com>2012-03-29 16:13:52 +0200
committerQt by Nokia <qt-info@nokia.com>2012-03-30 21:51:14 +0200
commit4efd61c3cf3d25db1c60bf5c842837c5b24a05fa (patch)
treed9c45557d91bcda9198d28739da3931c489d7af8 /src/plugins/platforms/qnx/qqnxscreen.h
parentb5f343b3677a7c7f09d91d7d60f310717325e840 (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/qqnxscreen.h')
-rw-r--r--src/plugins/platforms/qnx/qqnxscreen.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/plugins/platforms/qnx/qqnxscreen.h b/src/plugins/platforms/qnx/qqnxscreen.h
index a39689dd2c..fb05dfd730 100644
--- a/src/plugins/platforms/qnx/qqnxscreen.h
+++ b/src/plugins/platforms/qnx/qqnxscreen.h
@@ -91,10 +91,17 @@ public:
QSharedPointer<QQnxRootWindow> rootWindow() const { return m_rootWindow; }
+public Q_SLOTS:
+ void newWindowCreated(void *window);
+ void windowClosed(void *window);
+
private Q_SLOTS:
void keyboardHeightChanged(int height);
private:
+ void addOverlayWindow(screen_window_t window);
+ void removeOverlayWindow(screen_window_t window);
+
screen_context_t m_screenContext;
screen_display_t m_display;
QSharedPointer<QQnxRootWindow> m_rootWindow;
@@ -111,6 +118,7 @@ private:
QPlatformOpenGLContext *m_platformContext;
QList<QQnxWindow *> m_childWindows;
+ QList<screen_window_t> m_overlays;
};
QT_END_NAMESPACE