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>
bb10
Pekka Vuorela 2012-01-02 16:49:07 +02:00 committed by Qt by Nokia
parent 0277f14f48
commit a2fd2f90ec
2 changed files with 5 additions and 0 deletions

View File

@ -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
};

View File

@ -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: