aboutsummaryrefslogtreecommitdiffstats
path: root/examples/quick/shared/Slider.qml
diff options
context:
space:
mode:
authorShawn Rutledge <shawn.rutledge@digia.com>2015-02-18 09:23:32 +0100
committerShawn Rutledge <shawn.rutledge@digia.com>2015-04-21 13:43:24 +0000
commita6abc54fc6d35246cee2f686d4c9abb76564ae83 (patch)
tree99163796cc43ce0e78075eaa273e6aa5c161279b /examples/quick/shared/Slider.qml
parenta663455c8c9f561f2380f3bffd3c51d3a41c6bff (diff)
add manual tests for touch interaction
So far there are manual tests for Flickable and MultiPointTouchArea. It can be expanded later. Change-Id: Ifa838b68f137a49647a208dc15f22c90f1e02d1f Reviewed-by: Laszlo Agocs <laszlo.agocs@theqtcompany.com>
Diffstat (limited to 'examples/quick/shared/Slider.qml')
-rw-r--r--examples/quick/shared/Slider.qml3
1 files changed, 2 insertions, 1 deletions
diff --git a/examples/quick/shared/Slider.qml b/examples/quick/shared/Slider.qml
index b3b2c98271..1728024715 100644
--- a/examples/quick/shared/Slider.qml
+++ b/examples/quick/shared/Slider.qml
@@ -44,6 +44,7 @@ Item {
property real init: min+(max-min)/2
property string name: "Slider"
property color color: "#0066cc"
+ property real minLabelWidth: 44
Component.onCompleted: setValue(init)
function setValue(v) {
@@ -57,7 +58,7 @@ Item {
anchors.left: parent.left
anchors.leftMargin: 16
height: childrenRect.height
- width: Math.max(44, childrenRect.width)
+ width: Math.max(minLabelWidth, childrenRect.width)
anchors.verticalCenter: parent.verticalCenter
Text {
text: slider.name + ":"