aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/doc/snippets/qml/statemachine/statemachine-button-nested-ignore-quit.qml
diff options
context:
space:
mode:
authorKevin Funk <kevin.funk@kdab.com>2014-10-09 16:05:33 +0200
committerBrett Stottlemyer <bstottle@ford.com>2014-10-21 02:13:33 +0200
commitf830c109d09d835551c1325c4904fc9a490b3754 (patch)
tree6bb3c09cb44ed0a5446749701ac4281831a62967 /src/qml/doc/snippets/qml/statemachine/statemachine-button-nested-ignore-quit.qml
parent5871f3e829f1f48995b5d6c03f7ad31fcda386e5 (diff)
qmlstatemachine: Rename StateBase to State
As discussed with Brett Stottlmyer and Alan Alpert. Add a section about the implications when importing both QtQml.StateMachine and QtQuick in one single QML file. Change-Id: I8755f4b578e2a6ff4c2377c7a8a0b996ba9b7129 Reviewed-by: BogDan Vatra <bogdan@kde.org> Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
Diffstat (limited to 'src/qml/doc/snippets/qml/statemachine/statemachine-button-nested-ignore-quit.qml')
-rw-r--r--src/qml/doc/snippets/qml/statemachine/statemachine-button-nested-ignore-quit.qml10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/qml/doc/snippets/qml/statemachine/statemachine-button-nested-ignore-quit.qml b/src/qml/doc/snippets/qml/statemachine/statemachine-button-nested-ignore-quit.qml
index 00f9cd3871..bf84b4cc90 100644
--- a/src/qml/doc/snippets/qml/statemachine/statemachine-button-nested-ignore-quit.qml
+++ b/src/qml/doc/snippets/qml/statemachine/statemachine-button-nested-ignore-quit.qml
@@ -39,8 +39,8 @@
****************************************************************************/
//! [document]
-import QtQml.StateMachine 1.0
import QtQuick 2.0
+import QtQml.StateMachine 1.0
Rectangle {
Row {
@@ -66,7 +66,7 @@ Rectangle {
// start the state machine
running: true
- StateBase {
+ State {
id: s1
// set the initial state
initialState: s11
@@ -79,7 +79,7 @@ Rectangle {
// do something when the state enters/exits
onEntered: console.log("s1 entered")
onExited: console.log("s1 exited")
- StateBase {
+ State {
id: s11
// create a transition from s11 to s12 when the button is clicked
SignalTransition {
@@ -92,7 +92,7 @@ Rectangle {
}
//![0]
- StateBase {
+ State {
id: s12
// create a transition from s12 to s13 when the button is clicked
SignalTransition {
@@ -112,7 +112,7 @@ Rectangle {
}
//![0]
- StateBase {
+ State {
id: s13
// create a transition from s13 to s11 when the button is clicked
SignalTransition {