summaryrefslogtreecommitdiffstats
path: root/tests/auto/declarative/qdeclarativestates/data/attachedPropertyChanges.qml
blob: e17823b6d8c622e5c234a6b051d94223edca73f7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
import Qt.test 1.0
import Qt 4.7

Item {
    id: item
    width: 100; height: 100
    MyRectangle.foo: 0

    states: State {
        name: "foo1"
        PropertyChanges {
            target: item
            MyRectangle.foo: 1
            width: 50
        }
    }

    Component.onCompleted: item.state = "foo1"
}