summaryrefslogtreecommitdiffstats
path: root/tests/auto/declarative/behaviors/data/parent.qml
diff options
context:
space:
mode:
authorMichael Brasser <michael.brasser@nokia.com>2010-02-05 05:58:19 (GMT)
committerMichael Brasser <michael.brasser@nokia.com>2010-02-05 06:02:16 (GMT)
commitc5cd42cde88bc4fd630a6044a9d44d29dc3df595 (patch)
treed297b43bbd93a636182325ab87a773d739861674 /tests/auto/declarative/behaviors/data/parent.qml
parent93ac24c12b2272cee75d37b4950baed6615ef1fb (diff)
downloadQt-c5cd42cde88bc4fd630a6044a9d44d29dc3df595.zip
Qt-c5cd42cde88bc4fd630a6044a9d44d29dc3df595.tar.gz
Qt-c5cd42cde88bc4fd630a6044a9d44d29dc3df595.tar.bz2
Fix Behaviors for object-type properties.
Task-number: QT-2269
Diffstat (limited to 'tests/auto/declarative/behaviors/data/parent.qml')
-rw-r--r--tests/auto/declarative/behaviors/data/parent.qml28
1 files changed, 28 insertions, 0 deletions
diff --git a/tests/auto/declarative/behaviors/data/parent.qml b/tests/auto/declarative/behaviors/data/parent.qml
new file mode 100644
index 0000000..4f4911b
--- /dev/null
+++ b/tests/auto/declarative/behaviors/data/parent.qml
@@ -0,0 +1,28 @@
+import Qt 4.6
+Rectangle {
+ width: 400
+ height: 400
+ Rectangle {
+ id: rect
+ objectName: "MyRect"
+ width: 100; height: 100; color: "green"
+ parent: Behavior {
+ SequentialAnimation {
+ PauseAnimation { duration: 200 }
+ PropertyAction {}
+ }
+ }
+ }
+ Item {
+ id: newParent
+ objectName: "NewParent"
+ x: 100
+ }
+ states: State {
+ name: "reparented"
+ PropertyChanges {
+ target: rect
+ parent: newParent
+ }
+ }
+}