summaryrefslogtreecommitdiffstats
path: root/tests/auto/declarative/states/data/parentChange2.qml
diff options
context:
space:
mode:
authorMichael Brasser <michael.brasser@nokia.com>2009-11-04 02:49:19 (GMT)
committerMichael Brasser <michael.brasser@nokia.com>2009-11-04 02:50:16 (GMT)
commit89b7c36a40afa536c77fc1f3088a3747c070f887 (patch)
treeb4d11aae24634d1e7033bf9ca10580ea6ef573ed /tests/auto/declarative/states/data/parentChange2.qml
parent182e09689623679c46feedc66b44e27c558d575b (diff)
downloadQt-89b7c36a40afa536c77fc1f3088a3747c070f887.zip
Qt-89b7c36a40afa536c77fc1f3088a3747c070f887.tar.gz
Qt-89b7c36a40afa536c77fc1f3088a3747c070f887.tar.bz2
States autotest + missing files.
Diffstat (limited to 'tests/auto/declarative/states/data/parentChange2.qml')
-rw-r--r--tests/auto/declarative/states/data/parentChange2.qml31
1 files changed, 31 insertions, 0 deletions
diff --git a/tests/auto/declarative/states/data/parentChange2.qml b/tests/auto/declarative/states/data/parentChange2.qml
new file mode 100644
index 0000000..d1c6d6a
--- /dev/null
+++ b/tests/auto/declarative/states/data/parentChange2.qml
@@ -0,0 +1,31 @@
+import Qt 4.6
+
+Rectangle {
+ id: newParent
+ width: 400; height: 400
+ Item {
+ scale: .5
+ rotation: 15
+ x: 10; y: 10
+ Rectangle {
+ id: myRect
+ objectName: "MyRect"
+ x: 5
+ width: 100; height: 100
+ color: "red"
+ }
+ }
+ MouseRegion {
+ id: Clickable
+ anchors.fill: parent
+ }
+
+ states: State {
+ name: "reparented"
+ when: Clickable.pressed
+ ParentChange {
+ target: myRect
+ parent: newParent
+ }
+ }
+}