diff options
author | Gunnar Sletta <gunnar.sletta@nokia.com> | 2011-06-15 10:50:19 +0200 |
---|---|---|
committer | Gunnar Sletta <gunnar.sletta@nokia.com> | 2011-06-15 10:50:19 +0200 |
commit | aec24e98b81eabab9ffc750f6f351b294928d470 (patch) | |
tree | b9741e747ac3ccdb2cbd35252e90ec49149c3d32 | |
parent | 63fd0d90965694c52f82a8c7a80cea86f3bacc7c (diff) |
Adapt to new particle naming
-rw-r--r-- | examples/animatedbackground/BackgroundSwirls.qml | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/examples/animatedbackground/BackgroundSwirls.qml b/examples/animatedbackground/BackgroundSwirls.qml index 17777f0..cc91833 100644 --- a/examples/animatedbackground/BackgroundSwirls.qml +++ b/examples/animatedbackground/BackgroundSwirls.qml @@ -35,7 +35,7 @@ **************************************************************************/ import QtQuick 2.0 -import Qt.labs.particles 2.0 +import QtQuick.Particles 2.0 Item { anchors.fill: parent @@ -89,24 +89,25 @@ Item { ParticleSystem{ id: particles } - ColoredParticle{ + ImageParticle{ anchors.fill: parent system: particles - image: "particle.png" + source: "particle.png" alpha: 0 colorVariation: 0.3 } - TrailEmitter{ + + Emitter{ anchors.fill: parent system: particles - particlesPerSecond: Math.sqrt(parent.width * parent.height) / 30 - particleDuration: 2000 + emitRate: Math.sqrt(parent.width * parent.height) / 30 + lifeSpan: 2000 emitting: true - particleSize: 4 - particleSizeVariation: 2 + size: 4 + sizeVariation: 2 - acceleration: AngleVector{ angle: 90; angleVariation: 360; magnitude: 20; } - speed: AngleVector{ angle: -90; angleVariation: 360; magnitude: 10; } + acceleration: AngledDirection { angle: 90; angleVariation: 360; magnitude: 20; } + speed: AngledDirection { angle: -90; angleVariation: 360; magnitude: 10; } } |