diff options
author | J-P Nurmi <jpnurmi@digia.com> | 2014-06-26 15:59:55 +0200 |
---|---|---|
committer | J-P Nurmi <jpnurmi@digia.com> | 2014-07-01 16:12:39 +0200 |
commit | 3e4d0ed66b2f8f3cf7b9af9f14af67c045b94682 (patch) | |
tree | df28ca1a0da5a44ae10829bfcae28c04fea3f60b /src/controls/TextField.qml | |
parent | 53f51a9ef2046ccc04d4f48c47ef8f02f619010a (diff) | |
download | qtquickcontrols-3e4d0ed66b2f8f3cf7b9af9f14af67c045b94682.tar.gz |
Add TextField/Area::inputMethodComposing
In order for the Android style to be able to control the visibility of
the text cursor handle as appropriate, it needs to know when the input
method is composing ie. when the user is typing.
Change-Id: If8e3ac66b63c938659a5d9044d75eafd348cd6a3
Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@digia.com>
Diffstat (limited to 'src/controls/TextField.qml')
-rw-r--r-- | src/controls/TextField.qml | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/controls/TextField.qml b/src/controls/TextField.qml index 1a8a3503..f25b8195 100644 --- a/src/controls/TextField.qml +++ b/src/controls/TextField.qml @@ -236,6 +236,18 @@ Control { property alias inputMask: textInput.inputMask /*! + \qmlproperty bool TextField::inputMethodComposing + \since QtQuick.Controls 1.3 + + This property holds whether the TextField has partial text input from an input method. + + While it is composing an input method may rely on mouse or key events from the TextField + to edit or commit the partial text. This property can be used to determine when to disable + events handlers that may interfere with the correct operation of an input method. + */ + readonly property bool inputMethodComposing: !!textInput.inputMethodComposing + + /*! \qmlproperty enumeration TextField::inputMethodHints Provides hints to the input method about the expected content of the |