aboutsummaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-rw-r--r--examples/particles/imageparticle/content/sharing.qml4
-rw-r--r--examples/particles/imageparticle/imageparticle.qml2
2 files changed, 4 insertions, 2 deletions
diff --git a/examples/particles/imageparticle/content/sharing.qml b/examples/particles/imageparticle/content/sharing.qml
index cbf62a2863..433ffe9524 100644
--- a/examples/particles/imageparticle/content/sharing.qml
+++ b/examples/particles/imageparticle/content/sharing.qml
@@ -66,6 +66,7 @@ Rectangle {
Text {color: "white"; text: 'Type: ' + type; font.pixelSize: 14 }
Text {color: "white"; text: 'Age: ' + age; font.pixelSize: 14 }
}
+ MouseArea { anchors.fill: parent; onClicked: listView.currentIndex = index; }
// indent the item if it is the current item
states: State {
name: "Current"
@@ -120,13 +121,14 @@ Rectangle {
Emitter {
system: particles
anchors.fill: parent
- emitRate: 1
+ emitRate: 0
lifeSpan: 10000
size: 24
sizeVariation: 8
velocity: AngleDirection { angleVariation: 360; magnitude: 3 }
maximumEmitted: 10
startTime: 5000
+ Timer { running: true; interval: 10; onTriggered: parent.emitRate = 1; }
}
//! [0]
diff --git a/examples/particles/imageparticle/imageparticle.qml b/examples/particles/imageparticle/imageparticle.qml
index a5e71a3842..5f7ca38b13 100644
--- a/examples/particles/imageparticle/imageparticle.qml
+++ b/examples/particles/imageparticle/imageparticle.qml
@@ -54,7 +54,7 @@ Item {
addExample("Deformation", "Deformed particles", Qt.resolvedUrl("content/deformation.qml"));
addExample("Rotation", "Rotated particles", Qt.resolvedUrl("content/rotation.qml"));
addExample("Sharing", "Multiple ImageParticles on the same particles", Qt.resolvedUrl("content/sharing.qml"));
- addExample("Sprites", "Partiles rendered with sprites", Qt.resolvedUrl("content/sprites.qml"));
+ addExample("Sprites", "Particles rendered with sprites", Qt.resolvedUrl("content/sprites.qml"));
}
}
}