diff options
author | Joona Petrell <joona.t.petrell@nokia.com> | 2010-10-06 04:01:56 (GMT) |
---|---|---|
committer | Joona Petrell <joona.t.petrell@nokia.com> | 2010-10-06 05:03:26 (GMT) |
commit | 695b54e671b55bd8103dee8b30ee76309dbd26c1 (patch) | |
tree | abf22c23b52d72c7c53343c269d7639baa6ae74a /demos/declarative | |
parent | 4647f24469ec93b3b66628472af5462fbe957439 (diff) | |
download | Qt-695b54e671b55bd8103dee8b30ee76309dbd26c1.zip Qt-695b54e671b55bd8103dee8b30ee76309dbd26c1.tar.gz Qt-695b54e671b55bd8103dee8b30ee76309dbd26c1.tar.bz2 |
Fix minehunt execution from QtDemo
Task-number: QTBUG-14250
Reviewed-by: Martin Jones
Diffstat (limited to 'demos/declarative')
-rw-r--r-- | demos/declarative/minehunt/main.cpp | 2 | ||||
-rw-r--r-- | demos/declarative/minehunt/minehunt.pro | 1 | ||||
-rw-r--r-- | demos/declarative/minehunt/minehunt.qrc | 20 |
3 files changed, 22 insertions, 1 deletions
diff --git a/demos/declarative/minehunt/main.cpp b/demos/declarative/minehunt/main.cpp index 8bbaee9..2b286ef 100644 --- a/demos/declarative/minehunt/main.cpp +++ b/demos/declarative/minehunt/main.cpp @@ -58,7 +58,7 @@ int main(int argc, char *argv[]) canvas.setResizeMode(QDeclarativeView::SizeRootObjectToView); #endif canvas.engine()->rootContext()->setContextObject(game); - canvas.setSource(QString("minehunt.qml")); + canvas.setSource(QString("qrc:minehunt.qml")); QObject::connect(canvas.engine(), SIGNAL(quit()), &app, SLOT(quit())); #ifdef Q_OS_SYMBIAN diff --git a/demos/declarative/minehunt/minehunt.pro b/demos/declarative/minehunt/minehunt.pro index 7a491ab..753ca4e 100644 --- a/demos/declarative/minehunt/minehunt.pro +++ b/demos/declarative/minehunt/minehunt.pro @@ -6,6 +6,7 @@ CONFIG += qt plugin # Input HEADERS += minehunt.h SOURCES += main.cpp minehunt.cpp +RESOURCES = minehunt.qrc sources.files = minehunt.qml minehunt.pro MinehuntCore sources.path = $$[QT_INSTALL_DEMOS]/declarative/minehunt diff --git a/demos/declarative/minehunt/minehunt.qrc b/demos/declarative/minehunt/minehunt.qrc new file mode 100644 index 0000000..fa8e27d --- /dev/null +++ b/demos/declarative/minehunt/minehunt.qrc @@ -0,0 +1,20 @@ +<!DOCTYPE RCC><RCC version="1.0"> +<qresource> + <file>minehunt.qml</file> + <file>MinehuntCore/Explosion.qml</file> + <file>MinehuntCore/Tile.qml</file> + <file>MinehuntCore/qmldir</file> + <file>MinehuntCore/pics/background.png</file> + <file>MinehuntCore/pics/back.png</file> + <file>MinehuntCore/pics/bomb-color.png</file> + <file>MinehuntCore/pics/bomb.png</file> + <file>MinehuntCore/pics/face-sad.png</file> + <file>MinehuntCore/pics/face-smile-big.png</file> + <file>MinehuntCore/pics/face-smile.png</file> + <file>MinehuntCore/pics/flag-color.png</file> + <file>MinehuntCore/pics/flag.png</file> + <file>MinehuntCore/pics/front.png</file> + <file>MinehuntCore/pics/quit.png</file> + <file>MinehuntCore/pics/star.png</file> +</qresource> +</RCC> |