Fix Minehunt demo
authorAlan Alpert <alan.alpert@nokia.com>
Fri, 27 Jan 2012 05:41:50 +0000 (15:41 +1000)
committerQt by Nokia <qt-info@nokia.com>
Wed, 1 Feb 2012 04:18:35 +0000 (05:18 +0100)
This masks the real issue in QTBUG-23362, but gets the demo
running again. This is also a more correct way of expressing the URL.

Task-number: QTBUG-23362
Change-Id: I5569b8f0047b03db041f05740cfed52bdef465b9
Reviewed-by: Martin Jones <martin.jones@nokia.com>

examples/declarative/minehunt/MinehuntCore/Explosion.qml
examples/declarative/minehunt/main.cpp

index 5413652..0983b68 100644 (file)
@@ -53,10 +53,10 @@ Item {
         }
         Emitter {
             id: particles
-            emitting: false
+            enabled: false
             anchors.centerIn: parent
             group: "star"
-            speed: AngledDirection { angleVariation: 360; magnitude: 150; magnitudeVariation: 50 }
+            speed: AngleDirection { angleVariation: 360; magnitude: 150; magnitudeVariation: 50 }
             emitRate: 200
             z: 100
             lifeSpan: 1000
index 197b138..47c0436 100644 (file)
@@ -56,7 +56,7 @@ int main(int argc, char *argv[])
 
     canvas.setResizeMode(QQuickView::SizeRootObjectToView);
     canvas.engine()->rootContext()->setContextObject(game);
-    canvas.setSource(QString("qrc:minehunt.qml"));
+    canvas.setSource(QString("qrc:///minehunt.qml"));
     QObject::connect(canvas.engine(), SIGNAL(quit()), &app, SLOT(quit()));
 
     canvas.show();