summaryrefslogtreecommitdiffstats
path: root/src/corelib/global
diff options
context:
space:
mode:
Diffstat (limited to 'src/corelib/global')
-rw-r--r--src/corelib/global/qnamespace.h3
-rw-r--r--src/corelib/global/qnamespace.qdoc2
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: