diff options
author | Shawn Rutledge <shawn.rutledge@qt.io> | 2019-04-05 22:58:12 +0200 |
---|---|---|
committer | Shawn Rutledge <shawn.rutledge@qt.io> | 2019-04-27 03:50:00 +0000 |
commit | f1b4348dae2b992aeaa75e4257c6db4a5182415c (patch) | |
tree | a2ddaee3f1211e28854e57e180a6db613eb3474c /tests/manual/pointer/fakeFlickable.qml | |
parent | 3d55d182704e2c2b01aa3e5fc159507e322dd281 (diff) |
fakeFlickable manual test: put the slider in a drawer
The main reason is that the drawer also demonstrates a different use
of the BoundaryRule (limiting drags, with springy endstops).
Change-Id: I958af65a857fda1b5b8dc1b135414799261afc1f
Reviewed-by: Jan Arve Sæther <jan-arve.saether@qt.io>
Diffstat (limited to 'tests/manual/pointer/fakeFlickable.qml')
-rw-r--r-- | tests/manual/pointer/fakeFlickable.qml | 45 |
1 files changed, 23 insertions, 22 deletions
diff --git a/tests/manual/pointer/fakeFlickable.qml b/tests/manual/pointer/fakeFlickable.qml index 284e0d1f34..3007848c9f 100644 --- a/tests/manual/pointer/fakeFlickable.qml +++ b/tests/manual/pointer/fakeFlickable.qml @@ -32,34 +32,22 @@ import "content" Rectangle { color: "#444" width: 480 - height: 480 + height: 640 FakeFlickable { id: ff anchors.fill: parent + anchors.leftMargin: 20 anchors.rightMargin: rightSB.width - Row { - Item { - width: 100 - height: 400 - Slider { - id: slider - label: "font size" - anchors.fill: parent - maximumValue: 36 - value: 14 - } - } - Text { - id: text - color: "beige" - font.family: "mono" - font.pointSize: slider.value - onTextChanged: console.log("text geom " + width + "x" + height + - ", parent " + parent + " geom " + parent.width + "x" + parent.height) - } - } + Text { + id: text + color: "beige" + font.family: "mono" + font.pointSize: slider.value + onTextChanged: console.log("text geom " + width + "x" + height + + ", parent " + parent + " geom " + parent.width + "x" + parent.height) + } onFlickStarted: console.log("flick started with velocity " + velocity) onFlickEnded: console.log("flick ended with velocity " + velocity) @@ -101,4 +89,17 @@ Rectangle { bottom: parent.bottom } } + + LeftDrawer { + width: 100 + anchors.verticalCenter: parent.verticalCenter + Slider { + id: slider + label: "font\nsize" + anchors.fill: parent + anchors.margins: 10 + maximumValue: 36 + value: 14 + } + } } |