summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authoraxis <qt-info@nokia.com>2009-05-28 14:31:28 (GMT)
committeraxis <qt-info@nokia.com>2009-05-28 14:31:28 (GMT)
commitcf6e5bd61cf0fc9fe4f70f87ad6d1dd59d456d97 (patch)
tree641ac762586f572800c0f25e9969ee3841a55ddc /src
parent1e96103c5bbd875d9e8607a322409b3abbfb136b (diff)
downloadQt-cf6e5bd61cf0fc9fe4f70f87ad6d1dd59d456d97.zip
Qt-cf6e5bd61cf0fc9fe4f70f87ad6d1dd59d456d97.tar.gz
Qt-cf6e5bd61cf0fc9fe4f70f87ad6d1dd59d456d97.tar.bz2
Cleaned up the inputMethodHints enum a bit.
Made a clear distinction between Exclusive flags and other flags.
Diffstat (limited to 'src')
-rw-r--r--src/corelib/global/qnamespace.h23
1 files changed, 13 insertions, 10 deletions
diff --git a/src/corelib/global/qnamespace.h b/src/corelib/global/qnamespace.h
index e0ca27c..75524a0 100644
--- a/src/corelib/global/qnamespace.h
+++ b/src/corelib/global/qnamespace.h
@@ -1401,16 +1401,19 @@ public:
enum InputMethodHint {
ImhNone = 0x0,
ImhHiddenText = 0x1,
- ImhDigitsOnly = 0x2,
- ImhFormattedNumbersOnly = 0x4,
- ImhUppercaseOnly = 0x8,
- ImhLowercaseOnly = 0x10,
- ImhNoAutoUppercase = 0x20,
- ImhPreferNumbers = 0x40,
- ImhPreferUppercase = 0x80,
- ImhPreferLowercase = 0x100,
- ImhNoPredictiveText = 0x200,
- ImhDialableCharactersOnly = 0x400
+ ImhNoAutoUppercase = 0x2,
+ ImhPreferNumbers = 0x4,
+ ImhPreferUppercase = 0x8,
+ ImhPreferLowercase = 0x10,
+ ImhNoPredictiveText = 0x20,
+
+ ImhDigitsOnly = 0x10000,
+ ImhFormattedNumbersOnly = 0x20000,
+ ImhUppercaseOnly = 0x40000,
+ ImhLowercaseOnly = 0x80000,
+ ImhDialableCharactersOnly = 0x100000,
+
+ ImhExclusiveInputMask = 0xffff0000
};
Q_DECLARE_FLAGS(InputMethodHints, InputMethodHint)