Immense Particles Refactor Part C
[profile/ivi/qtdeclarative.git] / demos / declarative / flickr / content / StreamView.qml
index 26a3f35..22e7d5d 100644 (file)
@@ -40,7 +40,7 @@
 ****************************************************************************/
 
 import QtQuick 2.0
-import Qt.labs.particles 2.0
+import QtQuick.Particles 2.0
 
 Item{
     id: container
@@ -52,7 +52,7 @@ Item{
         anchors.fill:parent
         overwrite: false
     }
-    DataParticle{
+    ModelParticle{
         id: mp
         fade: false
         system: sys
@@ -66,35 +66,35 @@ Item{
         }
     }
     property real emitterSpacing: parent.width/3
-    TrailEmitter{
+    Emitter{
         system: sys
         width: emitterSpacing - 64
         x: emitterSpacing*0 + 32
         y: -128
         height: 32
-        speed: PointVector{ y: (container.height + 128)/12 }
+        speed: PointDirection{ y: (container.height + 128)/12 }
         particlesPerSecond: 0.4
         particleDuration: 1000000//eventually -1 should mean a million seconds for neatness
         maxParticles: 15
     }
-    TrailEmitter{
+    Emitter{
         system: sys
         width: emitterSpacing - 64
         x: emitterSpacing*1 + 32
         y: -128
         height: 32
-        speed: PointVector{ y: (container.height + 128)/12 }
+        speed: PointDirection{ y: (container.height + 128)/12 }
         particlesPerSecond: 0.4
         particleDuration: 1000000//eventually -1 should mean a million seconds for neatness
         maxParticles: 15
     }
-    TrailEmitter{
+    Emitter{
         system: sys
         width: emitterSpacing - 64
         x: emitterSpacing*2 + 32
         y: -128
         height: 32
-        speed: PointVector{ y: (container.height + 128)/12 }
+        speed: PointDirection{ y: (container.height + 128)/12 }
         particlesPerSecond: 0.4
         particleDuration: 1000000//eventually -1 should mean a million seconds for neatness
         maxParticles: 15