aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/quick/qquickboundaryrule/data/dragHandler.qml
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/quick/qquickboundaryrule/data/dragHandler.qml')
-rw-r--r--tests/auto/quick/qquickboundaryrule/data/dragHandler.qml23
1 files changed, 23 insertions, 0 deletions
diff --git a/tests/auto/quick/qquickboundaryrule/data/dragHandler.qml b/tests/auto/quick/qquickboundaryrule/data/dragHandler.qml
new file mode 100644
index 0000000000..c66fd76ff1
--- /dev/null
+++ b/tests/auto/quick/qquickboundaryrule/data/dragHandler.qml
@@ -0,0 +1,23 @@
+import QtQuick 2.14
+import Qt.labs.animation 1.0
+
+Rectangle {
+ id: root
+ width: 240; height: 120
+ color: "green"
+
+ DragHandler {
+ id: dragHandler
+ yAxis.minimum: -1000
+ xAxis.minimum: -1000
+ onActiveChanged: if (!active) xbr.returnToBounds();
+ }
+
+ BoundaryRule on x {
+ id: xbr
+ minimum: -50
+ maximum: 100
+ minimumOvershoot: 40
+ maximumOvershoot: 40
+ }
+}