aboutsummaryrefslogtreecommitdiffstats
path: root/examples/particles/imageparticle
diff options
context:
space:
mode:
authorEskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@digia.com>2012-12-03 15:13:02 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2012-12-03 18:45:26 +0100
commit5543aefab0db9469b1714728097b0cce7ad5222e (patch)
tree6c1f85fabc38a1cf30a10776ad956cf886e8ef7b /examples/particles/imageparticle
parente03a879a68d3cb0906bab4dc81de8ac6ec017fa4 (diff)
Avoid duplicating Qt Quick Code Samples
We can't include ../../.. in exampledirs, because then qtqml will include all in the whole repository and a bunch of them will be duplicated in qtquick and qtqml. Change-Id: Ib2b9776af0969baceb1e4907c79ce6cecf31f67e Reviewed-by: Gunnar Sletta <gunnar.sletta@digia.com>
Diffstat (limited to 'examples/particles/imageparticle')
-rw-r--r--examples/particles/imageparticle/doc/src/imageparticle.qdoc14
1 files changed, 7 insertions, 7 deletions
diff --git a/examples/particles/imageparticle/doc/src/imageparticle.qdoc b/examples/particles/imageparticle/doc/src/imageparticle.qdoc
index c12de1def3..62c1a06839 100644
--- a/examples/particles/imageparticle/doc/src/imageparticle.qdoc
+++ b/examples/particles/imageparticle/doc/src/imageparticle.qdoc
@@ -35,25 +35,25 @@
Each example is a small QML file emphasizing a particular element or feature.
All at once shows off several of the features of ImageParticle at the same time.
- \snippet examples/particles/imageparticle/content/allatonce.qml 0
+ \snippet particles/imageparticle/content/allatonce.qml 0
Colored shows a simple ImageParticle with some color variation.
- \snippet examples/particles/imageparticle/content/colored.qml 0
+ \snippet particles/imageparticle/content/colored.qml 0
Color Table sets the color over life on the particles to provide a fixed rainbow effect.
- \snippet examples/particles/imageparticle/content/colortable.qml 0
+ \snippet particles/imageparticle/content/colortable.qml 0
Deformation spins and squishes a starfish particle.
- \snippet examples/particles/imageparticle/content/deformation.qml spin
- \snippet examples/particles/imageparticle/content/deformation.qml deform
+ \snippet particles/imageparticle/content/deformation.qml spin
+ \snippet particles/imageparticle/content/deformation.qml deform
Rotation demonstrates the autoRotate property, so that particles rotate in the direction that they travel.
Sharing demonstrates what happens when multiple ImageParticles try to render the same particle.
The following ImageParticle renders the particles inside the ListView:
- \snippet examples/particles/imageparticle/content/sharing.qml 0
+ \snippet particles/imageparticle/content/sharing.qml 0
The following ImageParticle is placed inside the list highlight, and renders the particles above the other ImageParticle.
- \snippet examples/particles/imageparticle/content/sharing.qml 1
+ \snippet particles/imageparticle/content/sharing.qml 1
Note that because it sets the color and alpha in this ImageParticle, it renders the particles in a different color.
Since it doesn't specify anything about the rotation, it shares the rotation with the other ImageParticle so that the flowers are rotated the same way in both.
Note that you can undo rotation in another ImageParticle, you just need to explicity set rotationVariation to 0.