From f0850e45b764f97a814f3295297206ae3e0c11b0 Mon Sep 17 00:00:00 2001 From: Alan Alpert Date: Fri, 27 Jan 2012 15:41:50 +1000 Subject: [PATCH] Fix Minehunt demo 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 --- .../minehunt/MinehuntCore/Explosion.qml | 4 ++-- examples/declarative/minehunt/main.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/declarative/minehunt/MinehuntCore/Explosion.qml b/examples/declarative/minehunt/MinehuntCore/Explosion.qml index 5413652..0983b68 100644 --- a/examples/declarative/minehunt/MinehuntCore/Explosion.qml +++ b/examples/declarative/minehunt/MinehuntCore/Explosion.qml @@ -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 diff --git a/examples/declarative/minehunt/main.cpp b/examples/declarative/minehunt/main.cpp index 197b138..47c0436 100644 --- a/examples/declarative/minehunt/main.cpp +++ b/examples/declarative/minehunt/main.cpp @@ -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(); -- 1.7.2.5