diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/controls/TextArea.qml | 12 | ||||
| -rw-r--r-- | src/controls/TextField.qml | 12 |
2 files changed, 24 insertions, 0 deletions
diff --git a/src/controls/TextArea.qml b/src/controls/TextArea.qml index ad121538a..aa02cb146 100644 --- a/src/controls/TextArea.qml +++ b/src/controls/TextArea.qml @@ -193,6 +193,18 @@ ScrollView { property alias verticalAlignment: edit.verticalAlignment /*! + \qmlproperty bool TextArea::inputMethodComposing + \since QtQuick.Controls 1.3 + + This property holds whether the TextArea has partial text input from an input method. + + While it is composing an input method may rely on mouse or key events from the TextArea + 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: !!edit.inputMethodComposing + + /*! \qmlproperty enumeration TextArea::inputMethodHints Provides hints to the input method about the expected content of the text edit, and how it diff --git a/src/controls/TextField.qml b/src/controls/TextField.qml index 1a8a3503d..f25b8195d 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 |
