summaryrefslogtreecommitdiffstats
path: root/tests/auto/declarative/visual/qdeclarativemouseregion/drag.qml
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/declarative/visual/qdeclarativemouseregion/drag.qml')
-rw-r--r--tests/auto/declarative/visual/qdeclarativemouseregion/drag.qml21
1 files changed, 21 insertions, 0 deletions
diff --git a/tests/auto/declarative/visual/qdeclarativemouseregion/drag.qml b/tests/auto/declarative/visual/qdeclarativemouseregion/drag.qml
new file mode 100644
index 0000000..dbb2a24
--- /dev/null
+++ b/tests/auto/declarative/visual/qdeclarativemouseregion/drag.qml
@@ -0,0 +1,21 @@
+import Qt 4.6
+
+Rectangle{
+ width:400
+ height:440
+ color: "white"
+ Rectangle{
+ id: draggable
+ width:40; height:40; color: "lightsteelblue"
+ y:20
+ MouseArea{
+ anchors.fill: parent
+ drag.target: draggable
+ drag.axis: "XandYAxis"
+ drag.minimumX: 0
+ drag.maximumX: 360
+ drag.minimumY: 20
+ drag.maximumY: 400
+ }
+ }
+}