aboutsummaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorAlan Alpert <alan.alpert@nokia.com>2011-12-22 10:51:23 +1000
committerQt by Nokia <qt-info@nokia.com>2011-12-23 04:22:52 +0100
commit932a195dbaae92ce87b98beca29a25c9b8d6cf5b (patch)
tree2d965bbc788e3978fc5980836e3e1898d890f86b /examples
parent1f4fe0aca4fc70ece7235623aaf88225531f1243 (diff)
Add currentSprite property to SpriteImage
Also renames goalState to goalSprite, to help distinguish it from item states. Change-Id: I77e81595586e69e47a50a7a767fdb7ad775ad7be Reviewed-by: Martin Jones <martin.jones@nokia.com>
Diffstat (limited to 'examples')
-rw-r--r--examples/declarative/imageelements/spriteimage.qml6
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/declarative/imageelements/spriteimage.qml b/examples/declarative/imageelements/spriteimage.qml
index 71c897e138..97398ccaf5 100644
--- a/examples/declarative/imageelements/spriteimage.qml
+++ b/examples/declarative/imageelements/spriteimage.qml
@@ -48,9 +48,9 @@ Item {
}
SequentialAnimation {
id: anim
- ScriptAction { script: image.goalState = "falling"; }
+ ScriptAction { script: image.goalSprite = "falling"; }
NumberAnimation { target: image; property: "y"; to: 1480; duration: 12000; }
- ScriptAction { script: {image.goalState = ""; image.jumpTo("still");} }
+ ScriptAction { script: {image.goalSprite = ""; image.jumpTo("still");} }
PropertyAction { target: image; property: "y"; value: 0 }
}
SpriteImage {
@@ -59,7 +59,7 @@ Item {
height: 256
anchors.horizontalCenter: parent.horizontalCenter
interpolate: false
- goalState: ""
+ goalSprite: ""
Sprite{
name: "still"
source: "content/Bear0.png"