diff options
author | Pekka Vuorela <pekka.ta.vuorela@nokia.com> | 2012-01-02 16:49:07 +0200 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-01-07 17:25:45 +0100 |
commit | a2fd2f90ec6f17715cff5b7e954c31b5356db649 (patch) | |
tree | c4e2d0e34e90aea248c198d8db4abaeb5e534560 /src/corelib/global | |
parent | 0277f14f48539d5f9d443c7d4135a54d4a5e2a62 (diff) |
Introduced input method hints for latin
On many cases especially latin input is wanted. Hint for these may,
e.g., help virtual keyboards on changing the layout to a western one.
Added a hint for requiring and another for preferring latin based
input.
Change-Id: I0ea79643665e25d9f916c3b8d0b7d7352843c2dc
Reviewed-by: Joona Petrell <joona.t.petrell@nokia.com>
Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
Diffstat (limited to 'src/corelib/global')
-rw-r--r-- | src/corelib/global/qnamespace.h | 3 | ||||
-rw-r--r-- | src/corelib/global/qnamespace.qdoc | 2 |
2 files changed, 5 insertions, 0 deletions
diff --git a/src/corelib/global/qnamespace.h b/src/corelib/global/qnamespace.h index 64c4541798..f584a26dfc 100644 --- a/src/corelib/global/qnamespace.h +++ b/src/corelib/global/qnamespace.h @@ -1298,6 +1298,8 @@ public: ImhDate = 0x80, ImhTime = 0x100, + ImhPreferLatin = 0x200, + ImhDigitsOnly = 0x10000, ImhFormattedNumbersOnly = 0x20000, ImhUppercaseOnly = 0x40000, @@ -1305,6 +1307,7 @@ public: ImhDialableCharactersOnly = 0x100000, ImhEmailCharactersOnly = 0x200000, ImhUrlCharactersOnly = 0x400000, + ImhLatinOnly = 0x800000, ImhExclusiveInputMask = 0xffff0000 }; diff --git a/src/corelib/global/qnamespace.qdoc b/src/corelib/global/qnamespace.qdoc index a7332417ae..58ca8d312e 100644 --- a/src/corelib/global/qnamespace.qdoc +++ b/src/corelib/global/qnamespace.qdoc @@ -2429,6 +2429,7 @@ \value ImhDate The text editor functions as a date field. \value ImhTime The text editor functions as a time field. + \value ImhPreferLatin Latin characters are preferred (but not required). Flags that restrict input (exclusive flags): @@ -2439,6 +2440,7 @@ \value ImhDialableCharactersOnly Only characters suitable for phone dialing are allowed. \value ImhEmailCharactersOnly Only characters suitable for email addresses are allowed. \value ImhUrlCharactersOnly Only characters suitable for URLs are allowed. + \value ImhLatinOnly Only latin based input is allowed. Masks: |