aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/quick/qquickmousearea/data
diff options
context:
space:
mode:
authorAdriano Rezende <atdrez@gmail.com>2012-02-26 17:27:34 +0100
committerQt by Nokia <qt-info@nokia.com>2012-06-30 14:39:22 +0200
commitb177bc47efefed3cb1c321a3e2d2bbb2e58351cd (patch)
tree0f5dbca5773633cb8c49659270a0f6d189df16b2 /tests/auto/quick/qquickmousearea/data
parentfd09392735ada1a8d85534eb8ed0d367e314b755 (diff)
Adjust MouseArea autotest to check mouse events with transformations
Tests mouse events with graphical transformations applied to the element. Change-Id: I4b69e35cde4125aa047fa18357b22b898da92c20 Reviewed-by: Frederik Gladhorn <frederik.gladhorn@nokia.com>
Diffstat (limited to 'tests/auto/quick/qquickmousearea/data')
-rw-r--r--tests/auto/quick/qquickmousearea/data/transformedMouseArea.qml21
1 files changed, 21 insertions, 0 deletions
diff --git a/tests/auto/quick/qquickmousearea/data/transformedMouseArea.qml b/tests/auto/quick/qquickmousearea/data/transformedMouseArea.qml
new file mode 100644
index 0000000000..80cdda77d3
--- /dev/null
+++ b/tests/auto/quick/qquickmousearea/data/transformedMouseArea.qml
@@ -0,0 +1,21 @@
+import QtQuick 2.0
+
+Rectangle {
+ width: 400
+ height: 400
+
+ Rectangle {
+ x: 100
+ y: 100
+ width: 200
+ height: 200
+ rotation: 45
+
+ MouseArea {
+ scale: 0.5
+ hoverEnabled: true
+ anchors.fill: parent
+ objectName: "mouseArea"
+ }
+ }
+}