aboutsummaryrefslogtreecommitdiffstats
path: root/examples/declarative/particles/trails/portal.qml
diff options
context:
space:
mode:
Diffstat (limited to 'examples/declarative/particles/trails/portal.qml')
-rw-r--r--examples/declarative/particles/trails/portal.qml18
1 files changed, 9 insertions, 9 deletions
diff --git a/examples/declarative/particles/trails/portal.qml b/examples/declarative/particles/trails/portal.qml
index dba2e59513..ae9b447fb9 100644
--- a/examples/declarative/particles/trails/portal.qml
+++ b/examples/declarative/particles/trails/portal.qml
@@ -39,7 +39,7 @@
****************************************************************************/
import QtQuick 2.0
-import Qt.labs.particles 2.0
+import QtQuick.Particles 2.0
Rectangle{
id: root
@@ -54,7 +54,7 @@ Rectangle{
id: particles
startTime: 2000
}
- ColoredParticle{
+ ImageParticle{
particles: ["center","edge"]
anchors.fill: parent
system: particles
@@ -62,7 +62,7 @@ Rectangle{
colorVariation: 0.1
color: "#009999FF"
}
- TrailEmitter{
+ Emitter{
anchors.fill: parent
particle: "center"
system: particles
@@ -72,15 +72,15 @@ Rectangle{
particleSize: 20
particleSizeVariation: 2
particleEndSize: 0
- shape: Ellipse{fill: false}
- speed: DirectedVector{
+ shape: EllipseShape{fill: false}
+ speed: TargetedDirection{
targetX: root.width/2
targetY: root.height/2
proportionalMagnitude: true
magnitude: 0.5
}
}
- TrailEmitter{
+ Emitter{
anchors.fill: parent
particle: "edge"
system: particles
@@ -90,15 +90,15 @@ Rectangle{
particleSize: 20
particleSizeVariation: 2
particleEndSize: 0
- shape: Ellipse{fill: false}
- speed: DirectedVector{
+ shape: EllipseShape{fill: false}
+ speed: TargetedDirection{
targetX: root.width/2
targetY: root.height/2
proportionalMagnitude: true
magnitude: 0.1
magnitudeVariation: 0.1
}
- acceleration: DirectedVector{
+ acceleration: TargetedDirection{
targetX: root.width/2
targetY: root.height/2
targetVariation: 200