From 9a23ecfb58c4795a7d3e722088c81a823cfb8c8d Mon Sep 17 00:00:00 2001 From: Alan Alpert Date: Fri, 23 Jan 2015 15:40:47 -0800 Subject: 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 --- examples/quick/particles/itemparticle/particleview.qml | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'examples') 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); } -- cgit v1.2.3