Add multi-line input method hint
Enabler for input on Android. Change-Id: I44670b95b35f773814125c5d35c67e9713567813 Reviewed-by: BogDan Vatra <bogdan@kde.org> Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@digia.com>
This commit is contained in:
parent
b56caf5f4e
commit
212ff4f34d
@ -1305,6 +1305,8 @@ public:
|
||||
|
||||
ImhPreferLatin = 0x200,
|
||||
|
||||
ImhMultiLine = 0x400,
|
||||
|
||||
ImhDigitsOnly = 0x10000,
|
||||
ImhFormattedNumbersOnly = 0x20000,
|
||||
ImhUppercaseOnly = 0x40000,
|
||||
|
@ -2330,6 +2330,8 @@
|
||||
\value ImhTime The text editor functions as a time field.
|
||||
\value ImhPreferLatin Latin characters are preferred (but not required).
|
||||
|
||||
\value ImhMultiLine Multiple lines can be entered into the text field.
|
||||
|
||||
Flags that restrict input (exclusive flags):
|
||||
|
||||
\value ImhDigitsOnly Only digits are allowed.
|
||||
|
@ -182,7 +182,7 @@ void QTextEditPrivate::init(const QString &html)
|
||||
q->setFocusPolicy(Qt::WheelFocus);
|
||||
q->setAttribute(Qt::WA_KeyCompression);
|
||||
q->setAttribute(Qt::WA_InputMethodEnabled);
|
||||
|
||||
q->setInputMethodHints(Qt::ImhMultiLine);
|
||||
#ifndef QT_NO_CURSOR
|
||||
viewport->setCursor(Qt::IBeamCursor);
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user