aboutsummaryrefslogtreecommitdiffstats
path: root/examples/quick/animation/states
diff options
context:
space:
mode:
Diffstat (limited to 'examples/quick/animation/states')
-rw-r--r--examples/quick/animation/states/states.qml2
-rw-r--r--examples/quick/animation/states/transitions.qml2
2 files changed, 4 insertions, 0 deletions
diff --git a/examples/quick/animation/states/states.qml b/examples/quick/animation/states/states.qml
index 7ca56a9295..b92ba1b313 100644
--- a/examples/quick/animation/states/states.qml
+++ b/examples/quick/animation/states/states.qml
@@ -86,6 +86,7 @@ Rectangle {
}
states: [
+ // ![0]
// In state 'middleRight', move the image to middleRightRect
State {
name: "middleRight"
@@ -97,5 +98,6 @@ Rectangle {
name: "bottomLeft"
PropertyChanges { target: userIcon; x: bottomLeftRect.x; y: bottomLeftRect.y }
}
+ // ![0]
]
}
diff --git a/examples/quick/animation/states/transitions.qml b/examples/quick/animation/states/transitions.qml
index d57924d6d2..bfc4057b97 100644
--- a/examples/quick/animation/states/transitions.qml
+++ b/examples/quick/animation/states/transitions.qml
@@ -105,6 +105,7 @@ Rectangle {
}
]
+ // ![0]
// Transitions define how the properties change when the item moves between each state
transitions: [
@@ -126,5 +127,6 @@ Rectangle {
Transition {
NumberAnimation { properties: "x,y"; duration: 200 }
}
+ // ![0]
]
}