diff options
author | jasplin <qt-info@nokia.com> | 2009-08-04 13:44:45 (GMT) |
---|---|---|
committer | jasplin <qt-info@nokia.com> | 2009-08-04 13:56:03 (GMT) |
commit | b80a499764bf331880ff0c0d52670a419ec50feb (patch) | |
tree | 12d4e0967d35a9e2fb44f8258320ab148ef6542e /src/corelib | |
parent | 30e3a39ca2e5e1204cc123dce2f2921d8fda620d (diff) | |
download | Qt-b80a499764bf331880ff0c0d52670a419ec50feb.zip Qt-b80a499764bf331880ff0c0d52670a419ec50feb.tar.gz Qt-b80a499764bf331880ff0c0d52670a419ec50feb.tar.bz2 |
Added input hints to QGraphicsItem.
This patch allows for input hints to be set on a QGraphicsItem.
Input methods use such hints to define its appearance/behavior
(e.g. to allow for numerical input only).
Reviewed-by: ahanssen
Task-number: 254493
Diffstat (limited to 'src/corelib')
-rw-r--r-- | src/corelib/global/qnamespace.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/corelib/global/qnamespace.h b/src/corelib/global/qnamespace.h index 7770fd6..f172d77 100644 --- a/src/corelib/global/qnamespace.h +++ b/src/corelib/global/qnamespace.h @@ -1406,6 +1406,21 @@ public: ImCurrentSelection }; + enum InputMethodHint { + ImhNone = 0x0, + ImhHiddenText = 0x1, + ImhNumbersOnly = 0x2, + ImhUppercaseOnly = 0x4, + ImhLowercaseOnly = 0x8, + ImhNoAutoUppercase = 0x10, + ImhPreferNumbers = 0x20, + ImhPreferUppercase = 0x40, + ImhPreferLowercase = 0x80, + ImhNoPredictiveText = 0x100, + ImhDialableCharactersOnly = 0x200 + }; + Q_DECLARE_FLAGS(InputMethodHints, InputMethodHint) + enum ToolButtonStyle { ToolButtonIconOnly, ToolButtonTextOnly, @@ -1591,6 +1606,7 @@ Q_DECLARE_OPERATORS_FOR_FLAGS(Qt::ItemFlags) Q_DECLARE_OPERATORS_FOR_FLAGS(Qt::MatchFlags) Q_DECLARE_OPERATORS_FOR_FLAGS(Qt::TextInteractionFlags) Q_DECLARE_OPERATORS_FOR_FLAGS(Qt::TouchPointStates) +Q_DECLARE_OPERATORS_FOR_FLAGS(Qt::InputMethodHints) typedef bool (*qInternalCallback)(void **); |