aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/quick/qquickflickable/data
diff options
context:
space:
mode:
authorAdriano Rezende <atdrez@gmail.com>2012-02-26 17:26:49 +0100
committerQt by Nokia <qt-info@nokia.com>2012-07-14 15:07:19 +0200
commitcb86525df6e4721cd150dea2a2f93d1bf54f478f (patch)
tree457a39fb7af1926e9410c65117426b127c2f9b18 /tests/auto/quick/qquickflickable/data
parentd3e6cffa7f7f803cc216e801ed77b7be222d1aff (diff)
Adjust Flickable autotest to check mouse events with transformation
Tests mouse events with graphical transformations applied to the element. Change-Id: I767a40ca0d5ed748bcb27ad23212ddbc22272fc5 Reviewed-by: Frederik Gladhorn <frederik.gladhorn@nokia.com>
Diffstat (limited to 'tests/auto/quick/qquickflickable/data')
-rw-r--r--tests/auto/quick/qquickflickable/data/transformedFlickable.qml43
1 files changed, 43 insertions, 0 deletions
diff --git a/tests/auto/quick/qquickflickable/data/transformedFlickable.qml b/tests/auto/quick/qquickflickable/data/transformedFlickable.qml
new file mode 100644
index 0000000000..ed5b0ae8c5
--- /dev/null
+++ b/tests/auto/quick/qquickflickable/data/transformedFlickable.qml
@@ -0,0 +1,43 @@
+import QtQuick 2.0
+
+Rectangle {
+ width: 400
+ height: 400
+
+ Rectangle {
+ x: 100
+ y: 100
+ width: 200
+ height: 200
+ rotation: 45
+
+ Rectangle {
+ scale: 0.5
+ color: "#888888"
+ anchors.fill: parent
+
+ Flickable {
+ id: flickable
+ contentHeight: 300
+ anchors.fill: parent
+ objectName: "flickable"
+
+ property alias itemPressed: mouseArea.pressed
+
+ Rectangle {
+ x: 50
+ y: 50
+ width: 100
+ height: 100
+ scale: 0.4
+ color: "red"
+
+ MouseArea {
+ id: mouseArea
+ anchors.fill: parent
+ }
+ }
+ }
+ }
+ }
+}