summaryrefslogtreecommitdiffstats
path: root/src/plugins/platforms/qnx/qqnxscreeneventhandler.h
diff options
context:
space:
mode:
authorJames Turner <james.turner.qnx@kdab.com>2012-10-08 14:29:51 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2012-10-09 17:48:37 +0200
commit1f0d430c3a660c9e72581b582fe16c440bcf9eac (patch)
tree47653e5659f11bb37effec755d67c9889a1192cf /src/plugins/platforms/qnx/qqnxscreeneventhandler.h
parent3374f06af2085c372da7fb634b2f82d7440dcdd1 (diff)
QNX: Add and remove screens dynamically.
Watch for display events from libscreen, and dynamically add and remove QPlatformScreens (and hence QScreens) in response. Change-Id: I56dc7019a4d4c77798a0a88451d2f3060066f5d2 Reviewed-by: Thomas McGuire <thomas.mcguire@kdab.com> Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
Diffstat (limited to 'src/plugins/platforms/qnx/qqnxscreeneventhandler.h')
-rw-r--r--src/plugins/platforms/qnx/qqnxscreeneventhandler.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/plugins/platforms/qnx/qqnxscreeneventhandler.h b/src/plugins/platforms/qnx/qqnxscreeneventhandler.h
index 9f737576df..7a1af6f343 100644
--- a/src/plugins/platforms/qnx/qqnxscreeneventhandler.h
+++ b/src/plugins/platforms/qnx/qqnxscreeneventhandler.h
@@ -48,11 +48,13 @@
QT_BEGIN_NAMESPACE
+class QQnxIntegration;
+
class QQnxScreenEventHandler : public QObject
{
Q_OBJECT
public:
- QQnxScreenEventHandler();
+ explicit QQnxScreenEventHandler(QQnxIntegration *integration);
bool handleEvent(screen_event_t event);
bool handleEvent(screen_event_t event, int qnxType);
@@ -69,12 +71,14 @@ private:
void handleTouchEvent(screen_event_t event, int qnxType);
void handleCloseEvent(screen_event_t event);
void handleCreateEvent(screen_event_t event);
+ void handleDisplayEvent(screen_event_t event);
private:
enum {
MaximumTouchPoints = 10
};
+ QQnxIntegration *m_qnxIntegration;
QPoint m_lastGlobalMousePoint;
QPoint m_lastLocalMousePoint;
Qt::MouseButtons m_lastButtonState;