diff options
author | Fabian Bumberger <fbumberger@rim.com> | 2014-02-08 18:32:12 +0100 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2014-02-16 20:21:43 +0100 |
commit | 0827f0bd6659db97fe8d8d062a1812f9f434fb50 (patch) | |
tree | 04962719eeac1afdaf26efa10a747cdd49800a95 /src/plugins/platforms/qnx/qqnxnativeinterface.cpp | |
parent | ddbbf2b4a71b15181a33d911b99f2e0650566edf (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/qqnxnativeinterface.cpp')
-rw-r--r-- | src/plugins/platforms/qnx/qqnxnativeinterface.cpp | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/plugins/platforms/qnx/qqnxnativeinterface.cpp b/src/plugins/platforms/qnx/qqnxnativeinterface.cpp index df9d96739a..b89c103a06 100644 --- a/src/plugins/platforms/qnx/qqnxnativeinterface.cpp +++ b/src/plugins/platforms/qnx/qqnxnativeinterface.cpp @@ -48,12 +48,19 @@ #include "qqnxinputcontext_imf.h" #endif +#include "qqnxintegration.h" + #include <QtGui/QOpenGLContext> #include <QtGui/QScreen> #include <QtGui/QWindow> QT_BEGIN_NAMESPACE +QQnxNativeInterface::QQnxNativeInterface(QQnxIntegration *integration) + : m_integration(integration) +{ +} + void *QQnxNativeInterface::nativeResourceForWindow(const QByteArray &resource, QWindow *window) { if (resource == "windowGroup" && window && window->screen()) { @@ -78,6 +85,16 @@ void *QQnxNativeInterface::nativeResourceForScreen(const QByteArray &resource, Q return 0; } +void *QQnxNativeInterface::nativeResourceForIntegration(const QByteArray &resource) +{ +#ifdef Q_OS_BLACKBERRY + if (resource == "navigatorEventHandler") + return m_integration->navigatorEventHandler(); +#endif + + return 0; +} + void *QQnxNativeInterface::nativeResourceForContext(const QByteArray &resource, QOpenGLContext *context) { if (resource == "eglcontext" && context) |