summaryrefslogtreecommitdiffstats
path: root/src/plugins/platforms/qnx/qqnxnavigatoreventhandler.cpp
diff options
context:
space:
mode:
authorFabian Bumberger <fbumberger@rim.com>2014-02-08 18:32:12 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2014-02-16 20:21:43 +0100
commit0827f0bd6659db97fe8d8d062a1812f9f434fb50 (patch)
tree04962719eeac1afdaf26efa10a747cdd49800a95 /src/plugins/platforms/qnx/qqnxnavigatoreventhandler.cpp
parentddbbf2b4a71b15181a33d911b99f2e0650566edf (diff)
Refactor the handling of the navigator swipe down event
The navigator swipe down event is not mapped to a platform panel event any more. Instead the NavigatorEventHandler is exposed through the QPlatformNativeInterface. Change-Id: I6d29bba011849da5210f6f4d595e3c2e0c021449 Reviewed-by: Bernd Weimer <bweimer@blackberry.com> Reviewed-by: Rafael Roquetto <rafael.roquetto@kdab.com>
Diffstat (limited to 'src/plugins/platforms/qnx/qqnxnavigatoreventhandler.cpp')
-rw-r--r--src/plugins/platforms/qnx/qqnxnavigatoreventhandler.cpp12
1 files changed, 4 insertions, 8 deletions
diff --git a/src/plugins/platforms/qnx/qqnxnavigatoreventhandler.cpp b/src/plugins/platforms/qnx/qqnxnavigatoreventhandler.cpp
index 30dbb330d7..76d0df4920 100644
--- a/src/plugins/platforms/qnx/qqnxnavigatoreventhandler.cpp
+++ b/src/plugins/platforms/qnx/qqnxnavigatoreventhandler.cpp
@@ -41,6 +41,9 @@
#include "qqnxnavigatoreventhandler.h"
+#include "qqnxintegration.h"
+#include "qqnxscreen.h"
+
#include <QDebug>
#include <QGuiApplication>
#include <qpa/qwindowsysteminterface.h>
@@ -76,15 +79,8 @@ void QQnxNavigatorEventHandler::handleOrientationChange(int angle)
void QQnxNavigatorEventHandler::handleSwipeDown()
{
qNavigatorEventHandlerDebug() << Q_FUNC_INFO;
- QWindow *w = QGuiApplication::focusWindow();
-
- if (w) {
- // Get the top level window that is ancestor of the focus window
- while (QWindow *parent = w->parent())
- w = parent;
- QWindowSystemInterface::handlePlatformPanelEvent(w);
- }
+ Q_EMIT swipeDown();
}
void QQnxNavigatorEventHandler::handleExit()