diff options
author | Kai Uwe Broulik <kde@privat.broulik.de> | 2015-03-30 13:58:12 +0200 |
---|---|---|
committer | Kai Uwe Broulik <kde@privat.broulik.de> | 2015-04-09 08:25:20 +0000 |
commit | d47294bec7b339792cc38a0be4b05fa6bd79a6ca (patch) | |
tree | 4f7d4ae4deafd7791b1bd1312afe053cca635436 /src/corelib/global/qnamespace.h | |
parent | 65fdde30d055b8b69ed9521f8b69f638fc555365 (diff) |
Add ReturnKeyType enum to Qt namespace
This will allow to utilize the native return keys provided by most mobile
platforms, to indicate what kind of action pressing it will result in,
such as performing a search, a navigation, moving on to the next input
field or just closing the keyboard.
[ChangeLog][QtCore][Global] Added ReturnKeyType enum allowing for fine-grained
control of the platform's on screen keyboard return key
Change-Id: I6a691045ad6970e6893f23773b2449a7bafd98fc
Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@theqtcompany.com>
Diffstat (limited to 'src/corelib/global/qnamespace.h')
-rw-r--r-- | src/corelib/global/qnamespace.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/corelib/global/qnamespace.h b/src/corelib/global/qnamespace.h index 745fb442f2..c766b4d1c3 100644 --- a/src/corelib/global/qnamespace.h +++ b/src/corelib/global/qnamespace.h @@ -1322,6 +1322,7 @@ public: ImAbsolutePosition = 0x400, ImTextBeforeCursor = 0x800, ImTextAfterCursor = 0x1000, + ImReturnKeyType = 0x2000, ImPlatformData = 0x80000000, ImQueryInput = ImCursorRectangle | ImCursorPosition | ImSurroundingText | @@ -1361,6 +1362,17 @@ public: }; Q_DECLARE_FLAGS(InputMethodHints, InputMethodHint) + enum ReturnKeyType { + ReturnKeyDefault, + ReturnKeyEnter, + ReturnKeyDone, + ReturnKeyGo, + ReturnKeySend, + ReturnKeySearch, + ReturnKeyNext, + ReturnKeyPrevious + }; + enum ToolButtonStyle { ToolButtonIconOnly, ToolButtonTextOnly, @@ -1681,6 +1693,7 @@ public: QT_Q_ENUM(InputMethodHint) QT_Q_ENUM(InputMethodQuery) QT_Q_FLAG(InputMethodHints) + QT_Q_ENUM(ReturnKeyType) QT_Q_FLAG(InputMethodQueries) QT_Q_FLAG(TouchPointStates) QT_Q_ENUM(ScreenOrientation) |