diff options
author | Shawn Rutledge <shawn.rutledge@qt.io> | 2017-02-21 15:32:36 +0100 |
---|---|---|
committer | Shawn Rutledge <shawn.rutledge@qt.io> | 2017-02-22 05:39:06 +0000 |
commit | 55cb6574d41ff6e50d2956d7c6f1dd5ac1315741 (patch) | |
tree | 380067c040337db8b18abb35f25115fea444c3a0 /tests/manual/pointer/flickableWithHandlers.qml | |
parent | fcfaaa12278efd3e306841b2c77d4be0247bfbd3 (diff) |
flickableWithHandlers manual test improvements
Add it to main.qml and it and its dependencies to resources
Add checkbox to control Flickable's pressDelay
Change-Id: Ifaa4bbbaf61944231ab80cf356d7a3c44b24d73b
Reviewed-by: Jan Arve Sæther <jan-arve.saether@qt.io>
Diffstat (limited to 'tests/manual/pointer/flickableWithHandlers.qml')
-rw-r--r-- | tests/manual/pointer/flickableWithHandlers.qml | 62 |
1 files changed, 41 insertions, 21 deletions
diff --git a/tests/manual/pointer/flickableWithHandlers.qml b/tests/manual/pointer/flickableWithHandlers.qml index 822ca7dc8a..8225012591 100644 --- a/tests/manual/pointer/flickableWithHandlers.qml +++ b/tests/manual/pointer/flickableWithHandlers.qml @@ -40,6 +40,7 @@ import QtQuick 2.7 import Qt.labs.handlers 1.0 +import "qrc:/quick/shared/" as Examples import "content" Rectangle { @@ -52,35 +53,54 @@ Rectangle { Flickable { anchors.fill: parent anchors.margins: 10 + anchors.topMargin: 40 contentHeight: 600 contentWidth: 600 + pressDelay: pressDelayCB.checked ? 1000 : 0 - Row { + Column { spacing: 6 - Slider { - label: "DragHandler" - width: 100; height: 500 - } - MouseAreaSlider { - label: "MouseArea" - width: 100; height: 500 + Rectangle { + radius: 5 + width: parent.width - 12 + height: pressDelayCB.implicitHeight + 12 + x: 6 + color: "lightgray" + Examples.CheckBox { + x: 6; y: 6 + id: pressDelayCB + text: "press delay" + } } - Column { + + + Row { spacing: 6 - MouseAreaButton { - text: "MouseArea" - } - MptaButton { - text: "MultiPointTouchArea" - } - MptaButton { - text: "MultiPointTouchArea" + Slider { + label: "DragHandler" + value: 49; width: 100; height: 400 } - TapHandlerButton { - text: "TapHandler" + MouseAreaSlider { + label: "MouseArea" + value: 49; width: 100; height: 400 } - TapHandlerButton { - text: "TapHandler" + Column { + spacing: 6 + MouseAreaButton { + text: "MouseArea" + } + MptaButton { + text: "MultiPointTouchArea" + } + MptaButton { + text: "MultiPointTouchArea" + } + TapHandlerButton { + text: "TapHandler" + } + TapHandlerButton { + text: "TapHandler" + } } } } |