diff options
author | Alan Alpert <alan.alpert@nokia.com> | 2011-09-20 17:16:36 +1000 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2011-09-21 07:11:25 +0200 |
commit | c07ea77a6201ef5595ff5714fba891be4408fa9a (patch) | |
tree | a76327735961f81130bffeeb9a62f2fcb7fec8bb /examples/declarative/particles/affectors/age.qml | |
parent | ef98f5a80369e3f014585edc3dd63a2ec331d1ea (diff) |
Add whitespace
Change-Id: Iad55228ffa86bbf63b12a33d0f00ce734807c071
Reviewed-on: http://codereview.qt-project.org/5199
Reviewed-by: Bea Lam <bea.lam@nokia.com>
Diffstat (limited to 'examples/declarative/particles/affectors/age.qml')
-rw-r--r-- | examples/declarative/particles/affectors/age.qml | 19 |
1 files changed, 12 insertions, 7 deletions
diff --git a/examples/declarative/particles/affectors/age.qml b/examples/declarative/particles/affectors/age.qml index f2361a2997..7dc2ebefdb 100644 --- a/examples/declarative/particles/affectors/age.qml +++ b/examples/declarative/particles/affectors/age.qml @@ -46,10 +46,12 @@ Rectangle { width: 360 height: 600 color: "white" - ParticleSystem{ id: particles } + + ParticleSystem { id: particles } + ImageParticle { system: particles - sprites: Sprite{ + sprites: Sprite { name: "snow" source: "../images/snowflake.png" frames: 51 @@ -57,31 +59,34 @@ Rectangle { durationVariation: 8 } } + Emitter { system: particles emitRate: 20 lifeSpan: 8000 - speed: PointDirection{ y:80; yVariation: 40; } - acceleration: PointDirection{ y: 4 } + speed: PointDirection { y:80; yVariation: 40; } + acceleration: PointDirection { y: 4 } size: 36 endSize: 12 sizeVariation: 8 width: parent.width height: 100 } - MouseArea{ + + MouseArea { id: ma anchors.fill: parent hoverEnabled: true } - Rectangle{ + + Rectangle { color: "#803333AA" border.color: "black" x: ma.mouseX - 36 y: ma.mouseY - 36 width: 72 height: 72 - Age{ + Age { anchors.fill: parent system: particles once: true |