diff options
author | axis <qt-info@nokia.com> | 2009-09-23 15:59:42 (GMT) |
---|---|---|
committer | axis <qt-info@nokia.com> | 2009-09-23 15:59:42 (GMT) |
commit | 02641e549e836984f575c9b3cc121513c5fda7d6 (patch) | |
tree | a9b70bdcb2cf2dfe75080353b466f131106626a6 /src | |
parent | d5c9bf881c97785a61d056aeee645e768c8b0474 (diff) | |
download | Qt-02641e549e836984f575c9b3cc121513c5fda7d6.zip Qt-02641e549e836984f575c9b3cc121513c5fda7d6.tar.gz Qt-02641e549e836984f575c9b3cc121513c5fda7d6.tar.bz2 |
Cleaned up input method hints documentation a bit.
- Added missing docs for some flags.
- Rearranged the values by type.
RevBy: Trust me
Diffstat (limited to 'src')
-rw-r--r-- | src/corelib/global/qnamespace.qdoc | 21 |
1 files changed, 15 insertions, 6 deletions
diff --git a/src/corelib/global/qnamespace.qdoc b/src/corelib/global/qnamespace.qdoc index fafbec5..18b4d67 100644 --- a/src/corelib/global/qnamespace.qdoc +++ b/src/corelib/global/qnamespace.qdoc @@ -2451,23 +2451,32 @@ \enum Qt::InputMethodHint \value ImhNone No hints. + + Flags that alter the behavior: + \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 ImhDigitsOnly 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. + + Flags that restrict input (exclusive flags): + + \value ImhDigitsOnly Only digits are allowed. + \value ImhFormattedNumbersOnly Only number input is allowed. This includes decimal point and minus sign. + \value ImhUppercaseOnly Only upper case letter input is allowed. + \value ImhLowercaseOnly Only lower case letter input is allowed. \value ImhDialableCharactersOnly Only characters suitable for phone dialling are allowed. + \value ImhEmailCharactersOnly Only characters suitable for email addresses are allowed. + + Masks: - \omitvalue ImhFormattedNumbersOnly - \omitvalue ImhExclusiveInputMask + \value ImhExclusiveInputMask This mask yields nonzero if any of the exclusive flags are used. - \note If several flags ending with \c Only are ORed together, the resulting character set will + \note If several exclusive flags 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. |