aboutsummaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorAlan Alpert <aalpert@blackberry.com>2015-01-23 15:40:47 -0800
committerAlan Alpert <aalpert@blackberry.com>2015-01-26 21:02:47 +0100
commit9a23ecfb58c4795a7d3e722088c81a823cfb8c8d (patch)
tree51c9672a8db6e5d97dbe37f13f0aa81a8122f4af /examples
parent72f8b50571cecbc5ad0eb9fbee79af56eb2ea65e (diff)
Fix ItemParticle Example
The "press space to inject new items" functionality was broken, it had missed a couple of API changes somehow. Change-Id: Idccbf7ef50ecf5fc9d296a472f1dd78669f94206 Reviewed-by: Robin Burchell <robin.burchell@viroteck.net>
Diffstat (limited to 'examples')
-rw-r--r--examples/quick/particles/itemparticle/particleview.qml8
1 files changed, 3 insertions, 5 deletions
diff --git a/examples/quick/particles/itemparticle/particleview.qml b/examples/quick/particles/itemparticle/particleview.qml
index 89dcf61a05..14f04309a8 100644
--- a/examples/quick/particles/itemparticle/particleview.qml
+++ b/examples/quick/particles/itemparticle/particleview.qml
@@ -86,7 +86,7 @@ Item {
ImageParticle {
system: sys
groups: ["fireworks"]
- source: "../trails/../images/star.png"
+ source: "qrc:particleresources/star.png"
color: "lightsteelblue"
alpha: 0
colorVariation: 0
@@ -123,8 +123,7 @@ Item {
}
property Item alertItem;
function alert() {
- //resetter.active = false
- force.active = true;
+ force.enabled = true;
alertItem = alertDelegate.createObject(root);
alertItem.x = root.width/2 - alertItem.width/2
alertItem.y = root.height/2 - alertItem.height/2
@@ -139,8 +138,7 @@ Item {
repeat: false
interval: 800
onTriggered: {
- force.active = false
- //resetter.active = true;
+ force.enabled = false;
mp.take(alertItem, true);
centerEmitter.burst(1);
}