summaryrefslogtreecommitdiff
path: root/src/controls/ComboBox.qml
diff options
context:
space:
mode:
authorJ-P Nurmi <jpnurmi@digia.com>2014-07-18 10:06:43 +0200
committerJ-P Nurmi <jpnurmi@digia.com>2014-07-18 10:18:48 +0200
commit62babdaa5810c575215565dcc9086e869d272517 (patch)
tree87f04fc21dd1f244890b4667a6fe3edf3db9c1bb /src/controls/ComboBox.qml
parenta118f68ba8600e5c5b472e3bac6a0e320ed4fdb4 (diff)
downloadqtquickcontrols-62babdaa5810c575215565dcc9086e869d272517.tar.gz
Add ComboBox::inputMethodComposing
Change-Id: I3701a28721252bc3cca46a223bb665faf38002f7 Reviewed-by: Liang Qi <liang.qi@digia.com>
Diffstat (limited to 'src/controls/ComboBox.qml')
-rw-r--r--src/controls/ComboBox.qml12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/controls/ComboBox.qml b/src/controls/ComboBox.qml
index 7da3c522..51694e73 100644
--- a/src/controls/ComboBox.qml
+++ b/src/controls/ComboBox.qml
@@ -238,6 +238,18 @@ Control {
readonly property alias acceptableInput: input.acceptableInput
/*!
+ \qmlproperty bool ComboBox::inputMethodComposing
+ \since QtQuick.Controls 1.3
+
+ This property holds whether an editable ComboBox has partial text input from an input method.
+
+ While it is composing an input method may rely on mouse or key events from the ComboBox
+ 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: !!input.inputMethodComposing
+
+ /*!
\qmlsignal ComboBox::accepted()
\since QtQuick.Controls 1.1