aboutsummaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorChristiaan Janssen <christiaan.janssen@digia.com>2012-11-23 17:17:45 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2012-11-23 18:45:51 +0100
commitbe197c62c09c31de2956eeb6fc11024a2c77f0ca (patch)
tree5ac7d9ca2a6a45d8cfb6eeb8d00d7fc7c007e2aa /examples
parent7508e71f0d4e88d180cf602b0fdc5484ef0b684e (diff)
Declarative examples: fixed particles/imageparticle example
Change-Id: Idec210a23e85f1460652f938c72aea7b5a2a2458 Reviewed-by: Christian Stenger <christian.stenger@digia.com>
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"));
}
}
}