summaryrefslogtreecommitdiff
path: root/src/controls/SpinBox.qml
diff options
context:
space:
mode:
authorJ-P Nurmi <jpnurmi@digia.com>2014-07-18 10:02:37 +0200
committerJ-P Nurmi <jpnurmi@digia.com>2014-07-18 10:18:44 +0200
commita118f68ba8600e5c5b472e3bac6a0e320ed4fdb4 (patch)
treeba3b2d3442597db5149cb4064d268920c2c4ac47 /src/controls/SpinBox.qml
parentb5f2f8403fe5044dfca7dad379494a3554af3090 (diff)
downloadqtquickcontrols-a118f68ba8600e5c5b472e3bac6a0e320ed4fdb4.tar.gz
Add SpinBox::inputMethodComposing
Change-Id: I5c2b10cf293b36547486a12f6a50e8083d36c6a3 Reviewed-by: Liang Qi <liang.qi@digia.com>
Diffstat (limited to 'src/controls/SpinBox.qml')
-rw-r--r--src/controls/SpinBox.qml12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/controls/SpinBox.qml b/src/controls/SpinBox.qml
index 83b18a6a..d1161784 100644
--- a/src/controls/SpinBox.qml
+++ b/src/controls/SpinBox.qml
@@ -180,6 +180,18 @@ Control {
*/
signal editingFinished()
+ /*!
+ \qmlproperty bool SpinBox::inputMethodComposing
+ \since QtQuick.Controls 1.3
+
+ This property holds whether the SpinBox has partial text input from an input method.
+
+ While it is composing an input method may rely on mouse or key events from the SpinBox
+ 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
+
style: Qt.createComponent(Settings.style + "/SpinBoxStyle.qml", spinbox)
/*! \internal */