diff options
author | Alan Alpert <alan.alpert@nokia.com> | 2012-01-18 10:32:33 +1000 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-01-27 06:17:51 +0100 |
commit | 15c00d747e24dae3b2681e6af07cfba3bdb6f74c (patch) | |
tree | 3b79f3fed858ac0a7e7568d79c93f8454b3c0e13 /examples | |
parent | 3a03373ad29ee3f66878e008eb7f56156cbbd06f (diff) |
Update Sprite API
Added the following properties
frameSync (replaces duration: -1)
frameRate
frameRateVariation
frameDuration
frameDurationVariation
frameX (not yet implemented)
frameY (not yet implemented)
reverse (not yet implemented)
Started the process of duration meaning animation duration instead of
frameDuration, but some grace period is being allowed for the transition
Change-Id: I0771a55d1708ba999483f76796f0323043b8a4db
Reviewed-by: Alan Alpert <alan.alpert@nokia.com>
Reviewed-by: Martin Jones <martin.jones@nokia.com>
Diffstat (limited to 'examples')
-rw-r--r-- | examples/declarative/imageelements/simplesprite.qml | 2 | ||||
-rw-r--r-- | examples/declarative/imageelements/spriteimage.qml | 10 |
2 files changed, 6 insertions, 6 deletions
diff --git a/examples/declarative/imageelements/simplesprite.qml b/examples/declarative/imageelements/simplesprite.qml index accddf975b..ec696c6810 100644 --- a/examples/declarative/imageelements/simplesprite.qml +++ b/examples/declarative/imageelements/simplesprite.qml @@ -50,8 +50,8 @@ Item { anchors.fill: parent Sprite{ source: "content/speaker.png" - duration: -1 frames: 60 + frameSync: true frameWidth: 170 frameHeight: 170 } diff --git a/examples/declarative/imageelements/spriteimage.qml b/examples/declarative/imageelements/spriteimage.qml index 95b3b7d260..bace7ef7e2 100644 --- a/examples/declarative/imageelements/spriteimage.qml +++ b/examples/declarative/imageelements/spriteimage.qml @@ -66,7 +66,7 @@ Item { frames: 1 frameWidth: 256 frameHeight: 256 - duration: 100 + frameDuration: 100 to: {"still":1, "blink":0.1, "floating":0} } Sprite{ @@ -75,7 +75,7 @@ Item { frames: 3 frameWidth: 256 frameHeight: 256 - duration: 100 + frameDuration: 100 to: {"still":1} } Sprite{ @@ -84,7 +84,7 @@ Item { frames: 9 frameWidth: 256 frameHeight: 256 - duration: 160 + frameDuration: 160 to: {"still":0, "flailing":1} } Sprite{ @@ -93,7 +93,7 @@ Item { frames: 8 frameWidth: 256 frameHeight: 256 - duration: 160 + frameDuration: 160 to: {"falling":1} } Sprite{ @@ -102,7 +102,7 @@ Item { frames: 5 frameWidth: 256 frameHeight: 256 - duration: 160 + frameDuration: 160 to: {"falling":1} } } |