diff options
author | J-P Nurmi <jpnurmi@theqtcompany.com> | 2016-02-22 14:13:39 +0100 |
---|---|---|
committer | J-P Nurmi <jpnurmi@theqtcompany.com> | 2016-02-23 09:26:12 +0000 |
commit | 9d32fd6f446844a713d520fe02aa8c5c2104898d (patch) | |
tree | bed3c531e4651271619bec74253899f7c5af2b61 /src/imports/controls/SpinBox.qml | |
parent | 95168d58afb13409c07375eafd6897b4097e4287 (diff) |
Add SpinBox::editable property
The default value is false, which is more mobile/embedded/touch
friendly choice, and will be also in line with ComboBox::editable
when it gets introduced sometime in the future.
Change-Id: Iaaad8f5533100c2d5c4b49d1ef8ee849cf31feff
Task-number: QTBUG-51114
Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
Diffstat (limited to 'src/imports/controls/SpinBox.qml')
-rw-r--r-- | src/imports/controls/SpinBox.qml | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/imports/controls/SpinBox.qml b/src/imports/controls/SpinBox.qml index 77f89206..d3184626 100644 --- a/src/imports/controls/SpinBox.qml +++ b/src/imports/controls/SpinBox.qml @@ -74,6 +74,7 @@ T.SpinBox { horizontalAlignment: Qt.AlignHCenter verticalAlignment: Qt.AlignVCenter + readOnly: !control.editable validator: control.validator inputMethodHints: Qt.ImhFormattedNumbersOnly } |