diff options
author | Sergio Martins <sergio.martins.qnx@kdab.com> | 2012-10-10 20:24:23 (GMT) |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2012-10-12 00:19:36 (GMT) |
commit | ee447020dbecef821b73d7d2981d7c8859c9a28b (patch) | |
tree | be8bb4d30a4fb2b6714f82859da2790c9796ca12 /src/plugins/platforms | |
parent | 6727781ec9a4657a6a8e0ad27687c78ee90c6989 (diff) | |
download | Qt-ee447020dbecef821b73d7d2981d7c8859c9a28b.zip Qt-ee447020dbecef821b73d7d2981d7c8859c9a28b.tar.gz Qt-ee447020dbecef821b73d7d2981d7c8859c9a28b.tar.bz2 |
Introducing the PlatformPanel event type.
This event can be used by any platform plugin to implement
special application panels/overlayed menus.
Currently used by QNX only.
This replaces sending fake Qt::Key_Menu presses in the QNX
plugin. Qt::Key_Menu is already used when invoking context
menus with the keyboard.
( backport of qtbase/9695df4d44b228e7e778ff17d5cccac30967b1fd )
Change-Id: Id5cf96758f1104f454a2bb977b367d09d4685b62
Reviewed-by: Paul Olav Tvete <paul.tvete@digia.com>
Reviewed-by: Kevin Krammer <kevin.krammer@kdab.com>
Diffstat (limited to 'src/plugins/platforms')
-rw-r--r-- | src/plugins/platforms/blackberry/qbbnavigatoreventhandler.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/plugins/platforms/blackberry/qbbnavigatoreventhandler.cpp b/src/plugins/platforms/blackberry/qbbnavigatoreventhandler.cpp index b253257..0f19904 100644 --- a/src/plugins/platforms/blackberry/qbbnavigatoreventhandler.cpp +++ b/src/plugins/platforms/blackberry/qbbnavigatoreventhandler.cpp @@ -80,14 +80,12 @@ void QBBNavigatorEventHandler::handleOrientationChange(int angle) void QBBNavigatorEventHandler::handleSwipeDown() { - // simulate menu key press #if defined(QBBNAVIGATOREVENTHANDLER_DEBUG) qDebug() << Q_FUNC_INFO; #endif - QWidget *w = QApplication::activeWindow(); - QWindowSystemInterface::handleKeyEvent(w, QEvent::KeyPress, Qt::Key_Menu, Qt::NoModifier); - QWindowSystemInterface::handleKeyEvent(w, QEvent::KeyRelease, Qt::Key_Menu, Qt::NoModifier); + if (w) + QWindowSystemInterface::handlePlatformPanelEvent(w); } void QBBNavigatorEventHandler::handleExit() |