aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qtquick2/qdeclarativestates/data/attachedPropertyChanges.qml
blob: 413af2ee42d0f3d22968e3024422282829a8d93d (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 QtQuick 2.0

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"
}