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/plasmapatrol/content/Frigate.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/plasmapatrol/content/Frigate.qml')
-rw-r--r-- | examples/declarative/particles/plasmapatrol/content/Frigate.qml | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/examples/declarative/particles/plasmapatrol/content/Frigate.qml b/examples/declarative/particles/plasmapatrol/content/Frigate.qml index f26e7e881c..c7088cf1a5 100644 --- a/examples/declarative/particles/plasmapatrol/content/Frigate.qml +++ b/examples/declarative/particles/plasmapatrol/content/Frigate.qml @@ -54,7 +54,7 @@ Item { property int gunType: 0 width: 128 height: 128 - Emitter{ + Emitter { system: container.system group: "frigateShield" anchors.centerIn: parent @@ -63,13 +63,13 @@ Item { lifeSpan: 4800 enabled: hp > 0 } - Emitter{ + Emitter { system: container.system group: container.shipParticle anchors.centerIn: parent width: 64 height: 16 - shape: EllipseShape{} + shape: EllipseShape {} size: 16 sizeVariation: 8 @@ -78,24 +78,24 @@ Item { lifeSpan: 1200 maximumEmitted: (maxHP * 1 + 20)*2 } - Timer{ + Timer { id: fireControl property int next: Math.floor(Math.random() * 2) + 1 interval: 800 running: root.readySetGo repeat: true - onTriggered:{ - if(next == 1){ + onTriggered: { + if (next == 1) { gun1.fireAt(container.target); next = Math.floor(Math.random() * 2) + 1; - }else if(next == 2){ + } else if (next == 2) { gun2.fireAt(container.target); next = Math.floor(Math.random() * 2) + 1; } } } - Hardpoint{ + Hardpoint { x: 128 - 32 - 12 y: 64 - 12 id: gun1 @@ -103,7 +103,7 @@ Item { show: hp > 0 hardpointType: gunType } - Hardpoint{ + Hardpoint { x: 0 + 32 - 12 y: 64 - 12 id: gun2 |