Update Sprite using examples to frameDuration
authorAlan Alpert <alan.alpert@nokia.com>
Wed, 25 Jan 2012 10:48:04 +0000 (20:48 +1000)
committerQt by Nokia <qt-info@nokia.com>
Fri, 27 Jan 2012 05:18:00 +0000 (06:18 +0100)
While it's good to test the interim compatibility code, examples are not
supposed to print any warnings.

Change-Id: Ie6560213fd89b0ca4162c5b48dbaf86dee63cb48
Reviewed-by: Martin Jones <martin.jones@nokia.com>
examples/declarative/particles/affectors/age.qml
examples/declarative/particles/affectors/attractor.qml
examples/declarative/particles/affectors/customaffector.qml
examples/declarative/particles/affectors/friction.qml
examples/declarative/particles/affectors/spritegoal.qml
examples/declarative/particles/affectors/wander.qml
examples/declarative/particles/imageparticle/allatonce.qml
examples/declarative/particles/imageparticle/sprites.qml
examples/declarative/particles/plasmapatrol/content/PlasmaPatrolParticles.qml

index f3a4823..4b93f89 100644 (file)
@@ -55,8 +55,8 @@ Rectangle {
             name: "snow"
             source: "../images/snowflake.png"
             frames: 51
-            duration: 40
-            durationVariation: 8
+            frameDuration: 40
+            frameDurationVariation: 8
         }
     }
 
index 72f0513..1bcbf33 100644 (file)
@@ -109,8 +109,7 @@ Rectangle {
             name: "spinning"
             source: "../images/meteor.png"
             frames: 35
-            duration: 60
-            speedModifiesDuration: -0.1
+            frameDuration: 60
         }
     }
     ImageParticle {
index 0702ef2..6ff324f 100644 (file)
@@ -136,31 +136,31 @@ Item {
         sprites: [Sprite {
                 source: "../images/realLeaf1.png"
                 frames: 1
-                duration: 1
+                frameDuration: 1
                 to: {"a":1, "b":1, "c":1, "d":1}
             }, Sprite {
                 name: "a"
                 source: "../images/realLeaf1.png"
                 frames: 1
-                duration: 10000
+                frameDuration: 10000
             },
             Sprite {
                 name: "b"
                 source: "../images/realLeaf2.png"
                 frames: 1
-                duration: 10000
+                frameDuration: 10000
             },
             Sprite {
                 name: "c"
                 source: "../images/realLeaf3.png"
                 frames: 1
-                duration: 10000
+                frameDuration: 10000
             },
             Sprite {
                 name: "d"
                 source: "../images/realLeaf4.png"
                 frames: 1
-                duration: 10000
+                frameDuration: 10000
             }
         ]
 
index 5092b1c..ef990fa 100644 (file)
@@ -66,31 +66,31 @@ Item {
         sprites: [Sprite {
                 source: "../images/realLeaf1.png"
                 frames: 1
-                duration: 1
+                frameDuration: 1
                 to: {"a":1, "b":1, "c":1, "d":1}
             }, Sprite {
                 name: "a"
                 source: "../images/realLeaf1.png"
                 frames: 1
-                duration: 10000
+                frameDuration: 10000
             },
             Sprite {
                 name: "b"
                 source: "../images/realLeaf2.png"
                 frames: 1
-                duration: 10000
+                frameDuration: 10000
             },
             Sprite {
                 name: "c"
                 source: "../images/realLeaf3.png"
                 frames: 1
-                duration: 10000
+                frameDuration: 10000
             },
             Sprite {
                 name: "d"
                 source: "../images/realLeaf4.png"
                 frames: 1
-                duration: 10000
+                frameDuration: 10000
             }
         ]
 
index ac4f3c7..06cacea 100644 (file)
@@ -106,20 +106,20 @@ Item {
                 name: "spinning"
                 source: "../images/meteor.png"
                 frames: 35
-                duration: 40
+                frameDuration: 40
                 randomStart: true
                 to: {"explode":0, "spinning":1}
             },Sprite {
                 name: "explode"
                 source: "../images/_explo.png"
                 frames: 22
-                duration: 40
+                frameDuration: 40
                 to: {"nullFrame":1}
             },Sprite {//Not sure if this is needed, but seemed easiest
                 name: "nullFrame"
                 source: "../images/nullRock.png"
                 frames: 1
-                duration: 1000
+                frameDuration: 1000
             }
         ]
     }
index 19dff7e..40f4e87 100644 (file)
@@ -52,8 +52,8 @@ Rectangle {
             name: "snow"
             source: "../images/snowflake.png"
             frames: 51
-            duration: 40
-            durationVariation: 8
+            frameDuration: 40
+            frameDurationVariation: 8
         }
     }
 
index 78b18e5..c0f877a 100644 (file)
@@ -55,7 +55,7 @@ Rectangle {
                 name: "bear"
                 source: "../images/bear_tiles.png"
                 frames: 13
-                duration: 120
+                frameDuration: 120
             }
         ]
         colorVariation: 0.5
index e052761..61a3ce5 100644 (file)
@@ -52,7 +52,7 @@ Rectangle {
                 name: "bear"
                 source: "../images/bear_tiles.png"
                 frames: 13
-                duration: 120
+                frameDuration: 120
             }
         width: 250
         height: 250
@@ -72,25 +72,25 @@ Rectangle {
             name: "happy"
             source: "../images/starfish_1.png"
             frames: 1
-            duration: 260
+            frameDuration: 260
             to: {"happy": 1, "silly": 1, "angry": 1}
         }, Sprite {
             name: "angry"
             source: "../images/starfish_0.png"
             frames: 1
-            duration: 260
+            frameDuration: 260
             to: {"happy": 1, "silly": 1, "angry": 1}
         }, Sprite {
             name: "silly"
             source: "../images/starfish_2.png"
             frames: 1
-            duration: 260
+            frameDuration: 260
             to: {"happy": 1, "silly": 1, "noticedbear": 0}
         }, Sprite {
             name: "noticedbear"
             source: "../images/starfish_3.png"
             frames: 1
-            duration: 2600
+            frameDuration: 2600
         }]
     }
 
index 724cb34..1ca5ff5 100644 (file)
@@ -128,19 +128,19 @@ Item {
                 name: "spinning"
                 source: "pics/meteor.png"
                 frames: 35
-                duration: 40
+                frameDuration: 40
                 to: {"death":0, "spinning":1}
             },Sprite {
                 name: "death"
                 source: "pics/meteor_explo.png"
                 frames: 22
-                duration: 40
+                frameDuration: 40
                 to: {"null":1}
             }, Sprite {
                 name: "null"
                 source: "pics/nullRock.png"
                 frames: 1
-                duration: 1000
+                frameDuration: 1000
             }
         ]
     }