aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qtquick2/qdeclarativestates/data/basicChanges4.qml
blob: 7da1e0fb2ecb92c993f3f1749ebc6fab0de0572f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
import Qt.test 1.0
import QtQuick 2.0

MyRectangle {
    id: rect
    width: 100; height: 100
    color: "red"

    states: State {
        name: "aBlueDay"
        PropertyChanges {
            target: rect
            onPropertyWithNotifyChanged: { rect.color = "blue"; }
        }
    }

    Component.onCompleted: rect.state = "aBlueDay"
}