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

MyRectangle {
    id: rect

    onDidSomething: color = "blue"

    width: 100; height: 100
    color: "red"
    states: State {
        name: "green"
        PropertyChanges {
            target: rect
            onDidSomething: color = "green"
        }
    }
}