Initial import from the monolithic Qt.
[profile/ivi/qtdeclarative.git] / tests / auto / declarative / qdeclarativebehaviors / data / parent.qml
1 import QtQuick 1.0
2 Rectangle {
3     width: 400
4     height: 400
5     Rectangle {
6         id: rect
7         objectName: "MyRect"
8         width: 100; height: 100; color: "green"
9         Behavior on parent {
10             SequentialAnimation {
11                 PauseAnimation { duration: 500 }
12                 PropertyAction {}
13             }
14         }
15     }
16     Item {
17         id: newParent
18         objectName: "NewParent"
19         x: 100
20     }
21     states: State {
22         name: "reparented"
23         PropertyChanges {
24             target: rect
25             parent: newParent
26         }
27     }
28 }