aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/quick/qquickanimations/data/scriptActionBug.qml
blob: 48566db01d565dc6c77607153b0448650e960c03 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
import QtQuick 2.0

Item {
    property bool actionTriggered: false
    property bool stateChangeScriptTriggered: false

    states: State {
        name: "state1"
        StateChangeScript { script: stateChangeScriptTriggered = true }
    }

    transitions: Transition {
        ScriptAction { script: actionTriggered = true }
    }

    Component.onCompleted: state = "state1"
}