summaryrefslogtreecommitdiff
path: root/tests/auto/quick/qquickstates/data/ExtendedRectangle.qml
blob: 1ea346b8418c87b62611f3bc22b7dd899ecc82ee (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
import QtQuick 2.0
Rectangle {
    id: extendedRect
    objectName: "extendedRect"
    property color extendedColor: "orange"

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