summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorAlan Alpert <alan.alpert@nokia.com>2009-11-10 03:14:52 (GMT)
committerAlan Alpert <alan.alpert@nokia.com>2009-11-10 03:35:01 (GMT)
commitca9f7764982b90bb316ccca55dbd57edc5b40d4f (patch)
tree66ccf7f5564325f31a46a89daa4a4829b4d82cc8 /tests
parent8d930f43d6e0827ece00b61676b736421b50f290 (diff)
downloadQt-ca9f7764982b90bb316ccca55dbd57edc5b40d4f.zip
Qt-ca9f7764982b90bb316ccca55dbd57edc5b40d4f.tar.gz
Qt-ca9f7764982b90bb316ccca55dbd57edc5b40d4f.tar.bz2
Fix samegame tutorial 3
the js file hadn't been updated to avoid global vars Also updating a missed particles element
Diffstat (limited to 'tests')
-rw-r--r--tests/benchmarks/declarative/qmlcomponent/samegame/BoomBlock.qml15
1 files changed, 8 insertions, 7 deletions
diff --git a/tests/benchmarks/declarative/qmlcomponent/samegame/BoomBlock.qml b/tests/benchmarks/declarative/qmlcomponent/samegame/BoomBlock.qml
index a495cd0..723e62a 100644
--- a/tests/benchmarks/declarative/qmlcomponent/samegame/BoomBlock.qml
+++ b/tests/benchmarks/declarative/qmlcomponent/samegame/BoomBlock.qml
@@ -21,14 +21,16 @@ Item { id:block
}
}
opacity: 0
- opacity: Behavior { NumberAnimation { properties:"opacity"; duration: 200 } }
+ opacity: Behavior { NumberAnimation { duration: 200 } }
anchors.fill: parent
}
Particles { id: particles
- width:1; height:1; anchors.centerIn: parent; opacity: 0
- lifeSpan: 700; lifeSpanDeviation: 600; count:0; streamIn: false
- angle: 0; angleDeviation: 360; velocity: 100; velocityDeviation:30
+ width:1; height:1; anchors.centerIn: parent;
+ emissionRate: 0;
+ lifeSpan: 700; lifeSpanDeviation: 600;
+ angle: 0; angleDeviation: 360;
+ velocity: 100; velocityDeviation:30;
source: {
if(type == 0){
"pics/redStar.png";
@@ -45,10 +47,9 @@ Item { id:block
PropertyChanges { target: img; opacity: 1 }
},
State{ name: "DeathState"; when: dying == true
- PropertyChanges { target: particles; count: 50 }
- PropertyChanges { target: particles; opacity: 1 }
- PropertyChanges { target: particles; emitting: false } // i.e. emit only once
+ StateChangeScript { script: particles.burst(50); }
PropertyChanges { target: img; opacity: 0 }
+ StateChangeScript { script: block.destroy(1000); }
}
]
}