diff options
| author | BogDan Vatra <[email protected]> | 2018-01-09 12:54:22 +0200 |
|---|---|---|
| committer | BogDan Vatra <[email protected]> | 2018-04-15 18:00:34 +0000 |
| commit | 8379186009bc9d0a9ef6309c7508fd529b7eec12 (patch) | |
| tree | 3245df0ac359c23ce532e21859d24d7a373595e7 /src/plugins/platforms/android/qandroidinputcontext.h | |
| parent | ba2221bd7314c42353cd7ab2895c043d06d837ac (diff) | |
Android: rewrite edit context menu
- get rid of the old tool bar with edit controls which was also dropped
by Google after they realized that is not intuitive at all.
- we now introduce a nice context menu as we see in modern Android
devices. This menu works on all Android devices starting with API 16.
[ChangeLog][Android] Say hello to Android edit context menu
Change-Id: I00d0d83fe8876335c72d7b183db4c1b53746d6b7
Reviewed-by: Eskil Abrahamsen Blomfeldt <[email protected]>
Diffstat (limited to 'src/plugins/platforms/android/qandroidinputcontext.h')
| -rw-r--r-- | src/plugins/platforms/android/qandroidinputcontext.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/plugins/platforms/android/qandroidinputcontext.h b/src/plugins/platforms/android/qandroidinputcontext.h index 1b351f16bd1..71c6a2b1e9e 100644 --- a/src/plugins/platforms/android/qandroidinputcontext.h +++ b/src/plugins/platforms/android/qandroidinputcontext.h @@ -59,6 +59,14 @@ class QAndroidInputContext: public QPlatformInputContext }; public: + enum EditContext : uint32_t { + CutButton = 1 << 0, + CopyButton = 1 << 1, + PasteButton = 1 << 2, + SelectAllButton = 1 << 3, + AllButtons = CutButton | CopyButton | PasteButton | SelectAllButton + }; + enum HandleMode { Hidden = 0, ShowCursor = 1, |
