diff options
Diffstat (limited to 'tests/auto/declarative/qmlvisual/qdeclarativemousearea/drag.qml')
-rw-r--r-- | tests/auto/declarative/qmlvisual/qdeclarativemousearea/drag.qml | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/tests/auto/declarative/qmlvisual/qdeclarativemousearea/drag.qml b/tests/auto/declarative/qmlvisual/qdeclarativemousearea/drag.qml new file mode 100644 index 0000000..21c46d8 --- /dev/null +++ b/tests/auto/declarative/qmlvisual/qdeclarativemousearea/drag.qml @@ -0,0 +1,26 @@ +import Qt 4.6 + +/* +this test shows a blue box being dragged around -- first roughly tracing the +borders of the window, then doing a rough 'x'-shape, then moving to around the middle. +*/ + +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 + } + } +} |