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 /doc | |
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 'doc')
-rw-r--r-- | doc/src/classes/qnamespace.qdoc | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/doc/src/classes/qnamespace.qdoc b/doc/src/classes/qnamespace.qdoc index 59e0a95..a49e079 100644 --- a/doc/src/classes/qnamespace.qdoc +++ b/doc/src/classes/qnamespace.qdoc @@ -2418,6 +2418,30 @@ */ /*! + \enum Qt::InputMethodHint + + \value ImhNone No hints. + \value ImhHiddenText Characters should be hidden, as is typically used when entering passwords. + This is automatically set when setting QLineEdit::echoMode to \c Password. + \value ImhNumbersOnly Only number input is allowed. + \value ImhUppercaseOnly Only upper case letter input is allowed. + \value ImhLowercaseOnly Only lower case letter input is allowed. + \value ImhNoAutoUppercase The input method should not try to automatically switch to upper case + when a sentence ends. + \value ImhPreferNumbers Numbers are preferred (but not required). + \value ImhPreferUppercase Upper case letters are preferred (but not required). + \value ImhPreferLowercase Lower case letters are preferred (but not required). + \value ImhNoPredictiveText Do not use predictive text (i.e. dictionary lookup) while typing. + \value ImhDialableCharactersOnly Only characters suitable for phone dialling are allowed. + + \note If several flags ending with \c Only are ORed together, the resulting character set will + consist of the union of the specified sets. For instance specifying \c ImhNumbersOnly and + \c ImhUppercaseOnly would yield a set consisting of numbers and uppercase letters. + + \sa QGraphicsItem::inputMethodHints() +*/ + +/*! \enum Qt::InputMethodQuery \value ImMicroFocus The rectangle covering the area of the input cursor in widget coordinates. |