summaryrefslogtreecommitdiff
path: root/tests/manual
diff options
context:
space:
mode:
authorJ-P Nurmi <jpnurmi@digia.com>2014-07-18 07:51:14 +0200
committerJ-P Nurmi <jpnurmi@digia.com>2014-07-18 17:37:49 +0200
commit15d7ab65d1b8772a68258573141874d7f5cd2be5 (patch)
treed10ac54bc5373e7e312b773f2c2b8e0503e783da /tests/manual
parent85452fe6f4d30e09107533a488c39f895605aed7 (diff)
downloadqtquickcontrols-15d7ab65d1b8772a68258573141874d7f5cd2be5.tar.gz
SpinBox: add support for selection handles
Task-number: QTBUG-38934 Change-Id: I8f23d20a24977f1787dcd451b48b22326959e3bc Reviewed-by: Liang Qi <liang.qi@digia.com>
Diffstat (limited to 'tests/manual')
-rw-r--r--tests/manual/texthandles/main.qml16
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/manual/texthandles/main.qml b/tests/manual/texthandles/main.qml
index 24c501e0..c9c21d9f 100644
--- a/tests/manual/texthandles/main.qml
+++ b/tests/manual/texthandles/main.qml
@@ -110,6 +110,22 @@ ApplicationWindow {
}
}
+ SpinBox {
+ id: spinbox
+ z: 1
+ decimals: 2
+ value: 500000
+ maximumValue: 1000000
+ Layout.fillWidth: true
+ selectByMouse: selectBox.checked
+ horizontalAlignment: Qt.AlignHCenter
+
+ style: SpinBoxStyle {
+ cursorHandle: handleBox.checked ? cursorDelegate : null
+ selectionHandle: handleBox.checked ? selectionDelegate : null
+ }
+ }
+
TextArea {
id: edit
Layout.fillWidth: true