diff options
author | BogDan Vatra <bogdan@kde.org> | 2014-09-29 13:43:35 +0300 |
---|---|---|
committer | BogDan Vatra <bogdan@kde.org> | 2014-10-01 20:10:58 +0200 |
commit | 3b577dfe798bf5065a2bba4d7095709454aa709c (patch) | |
tree | 14172b58fac4e15662c58dbbd53c5790df48681a /src/plugins/platforms/android/androidjnimenu.h | |
parent | 8ee9774e67edf57d891528749a360a0af8f0c6f7 (diff) |
Use PopupMenu when possible.
On API-11+ we are going to use PopupMenu instead of ContextMenu to show
context menus. A PopupMenu displays a Menu in a modal popup window
anchored to a View. The popup will appear below the anchor view if there
is room, or above it if there is not.
Task-number: QTBUG-39736
Change-Id: Ie412ab0935b868348ce5c8bb0bf53571ffefd582
Reviewed-by: J-P Nurmi <jpnurmi@digia.com>
Reviewed-by: Paul Olav Tvete <paul.tvete@digia.com>
Diffstat (limited to 'src/plugins/platforms/android/androidjnimenu.h')
-rw-r--r-- | src/plugins/platforms/android/androidjnimenu.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/plugins/platforms/android/androidjnimenu.h b/src/plugins/platforms/android/androidjnimenu.h index 161fe004db..c54eb37f37 100644 --- a/src/plugins/platforms/android/androidjnimenu.h +++ b/src/plugins/platforms/android/androidjnimenu.h @@ -43,12 +43,14 @@ class QAndroidPlatformMenuBar; class QAndroidPlatformMenu; class QAndroidPlatformMenuItem; class QWindow; +class QRect; +class QPoint; namespace QtAndroidMenu { // Menu support void openOptionsMenu(); - void showContextMenu(QAndroidPlatformMenu *menu, JNIEnv *env = 0); + void showContextMenu(QAndroidPlatformMenu *menu, const QRect &anchorRect, JNIEnv *env = 0); void hideContextMenu(QAndroidPlatformMenu *menu); void syncMenu(QAndroidPlatformMenu *menu); void androidPlatformMenuDestroyed(QAndroidPlatformMenu *menu); |