aboutsummaryrefslogtreecommitdiffstats
path: root/examples/declarative/particles/affectors/gravity.qml
diff options
context:
space:
mode:
Diffstat (limited to 'examples/declarative/particles/affectors/gravity.qml')
-rw-r--r--examples/declarative/particles/affectors/gravity.qml7
1 files changed, 5 insertions, 2 deletions
diff --git a/examples/declarative/particles/affectors/gravity.qml b/examples/declarative/particles/affectors/gravity.qml
index d1f54a37fa..97d9c8569a 100644
--- a/examples/declarative/particles/affectors/gravity.qml
+++ b/examples/declarative/particles/affectors/gravity.qml
@@ -58,6 +58,7 @@ Item {
}
}
}
+
Rectangle {
id: ground
width: parent.width * 2
@@ -71,13 +72,15 @@ Item {
GradientStop { position: 1.0; color: "DarkGreen"; }
}
}
- MouseArea{
+
+ MouseArea {
anchors.fill: parent
onPositionChanged: {
var rot = Math.atan2(mouseY - window.height/2,mouseX - window.width/2) * 180/Math.PI;
ground.rotation = rot;
}
}
+
ParticleSystem { id: sys }
Gravity {
system: sys
@@ -91,7 +94,7 @@ Item {
lifeSpan: 10000
size: 64
}
- ImageParticle{
+ ImageParticle {
anchors.fill: parent
system: sys
source: "../images/realLeaf1.png"