summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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 */