diff options
author | Martin Jones <martin.jones@nokia.com> | 2010-09-14 00:16:20 (GMT) |
---|---|---|
committer | Martin Jones <martin.jones@nokia.com> | 2010-09-14 00:16:20 (GMT) |
commit | 83dcd6fbb145ce92705905c979fd8965c70f4b3a (patch) | |
tree | a8345b0f6c5615807d37b637b56369f55b85f5ea /tests/auto/declarative/qdeclarativestates/data | |
parent | ca36badc8925788e06910fab5200633d40e0f328 (diff) | |
download | Qt-83dcd6fbb145ce92705905c979fd8965c70f4b3a.zip Qt-83dcd6fbb145ce92705905c979fd8965c70f4b3a.tar.gz Qt-83dcd6fbb145ce92705905c979fd8965c70f4b3a.tar.bz2 |
In ParentChange treat flip in x and y as a 180 degree rotation
The two are equivalent, but flip doesn't work in ParentChange.
Task-number: QTBUG-13554
Reviewed-by: Michael Brasser
Diffstat (limited to 'tests/auto/declarative/qdeclarativestates/data')
-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 + } + } +} |