diff options
author | Qt Continuous Integration System <qt-info@nokia.com> | 2010-09-14 06:01:37 (GMT) |
---|---|---|
committer | Qt Continuous Integration System <qt-info@nokia.com> | 2010-09-14 06:01:37 (GMT) |
commit | e0c87958b1e2e61da80b2726226bc89982680161 (patch) | |
tree | 03ccc9aa5cc70736c087a724d9e7952a1a73ba28 /tests/auto/declarative/qdeclarativestates/data/parentChange6.qml | |
parent | 42242b3781cbc23a4b7da733a0eff36607ebabcb (diff) | |
parent | 6824699348235dbee41e5e8b70d789dbde7febcb (diff) | |
download | Qt-e0c87958b1e2e61da80b2726226bc89982680161.zip Qt-e0c87958b1e2e61da80b2726226bc89982680161.tar.gz Qt-e0c87958b1e2e61da80b2726226bc89982680161.tar.bz2 |
Merge branch '4.7' of scm.dev.nokia.troll.no:qt/qt-qml into 4.7-integration
* '4.7' of scm.dev.nokia.troll.no:qt/qt-qml:
In ParentChange treat flip in x and y as a 180 degree rotation
Diffstat (limited to 'tests/auto/declarative/qdeclarativestates/data/parentChange6.qml')
-rw-r--r-- | tests/auto/declarative/qdeclarativestates/data/parentChange6.qml | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/tests/auto/declarative/qdeclarativestates/data/parentChange6.qml b/tests/auto/declarative/qdeclarativestates/data/parentChange6.qml new file mode 100644 index 0000000..be92aba --- /dev/null +++ b/tests/auto/declarative/qdeclarativestates/data/parentChange6.qml @@ -0,0 +1,30 @@ +import Qt 4.7 + +Rectangle { + width: 400; height: 400 + Rectangle { + id: myRect + objectName: "MyRect" + x: 5; y: 5 + width: 100; height: 100 + color: "red" + } + MouseArea { + id: clickable + anchors.fill: parent + } + + Item { + id: newParent + rotation: 180 + } + + states: State { + name: "reparented" + when: clickable.pressed + ParentChange { + target: myRect + parent: newParent + } + } +} |