From a0fb0a5dd32b031f89abe603ed07a50c74327e37 Mon Sep 17 00:00:00 2001 From: Kai Koehne Date: Tue, 11 Dec 2012 14:17:34 +0100 Subject: Use resource files for most examples Make examples shadow-build-friendly by using resource files instead of trying to derive the qml path from applicationDirPath(). Change-Id: I669424554c772d9b261249b366247190f5fbd8b1 Reviewed-by: Oliver Wolff --- examples/quick/demos/maroon/main.cpp | 2 +- examples/quick/demos/maroon/maroon.pro | 5 +-- examples/quick/demos/maroon/maroon.qrc | 71 ++++++++++++++++++++++++++++++++++ 3 files changed, 74 insertions(+), 4 deletions(-) create mode 100644 examples/quick/demos/maroon/maroon.qrc (limited to 'examples/quick/demos/maroon') diff --git a/examples/quick/demos/maroon/main.cpp b/examples/quick/demos/maroon/main.cpp index da2343e444..6866cf8d7b 100644 --- a/examples/quick/demos/maroon/main.cpp +++ b/examples/quick/demos/maroon/main.cpp @@ -38,4 +38,4 @@ ** ****************************************************************************/ #include "../../shared/shared.h" -DECLARATIVE_EXAMPLE_MAIN(maroon) +DECLARATIVE_EXAMPLE_MAIN(demos/maroon/maroon) diff --git a/examples/quick/demos/maroon/maroon.pro b/examples/quick/demos/maroon/maroon.pro index e193927e72..6ca0a2bf16 100644 --- a/examples/quick/demos/maroon/maroon.pro +++ b/examples/quick/demos/maroon/maroon.pro @@ -2,8 +2,7 @@ TEMPLATE = app QT += qml quick SOURCES += main.cpp +RESOURCES += maroon.qrc target.path = $$[QT_INSTALL_EXAMPLES]/quick/demos/maroon -qml.files = maroon.qml content -qml.path = $$[QT_INSTALL_EXAMPLES]/quick/demos/maroon -INSTALLS += target qml +INSTALLS += target diff --git a/examples/quick/demos/maroon/maroon.qrc b/examples/quick/demos/maroon/maroon.qrc new file mode 100644 index 0000000000..52c2a4e513 --- /dev/null +++ b/examples/quick/demos/maroon/maroon.qrc @@ -0,0 +1,71 @@ + + + maroon.qml + content/BuildButton.qml + content/GameCanvas.qml + content/GameOverScreen.qml + content/InfoBar.qml + content/logic.js + content/NewGameScreen.qml + content/SoundEffect.qml + content/audio/bomb-action.wav + content/audio/catch-action.wav + content/audio/catch.wav + content/audio/currency.wav + content/audio/factory-action.wav + content/audio/melee-action.wav + content/audio/projectile-action.wav + content/audio/shooter-action.wav + content/gfx/background.png + content/gfx/bomb-action.png + content/gfx/bomb-idle.png + content/gfx/bomb.png + content/gfx/button-help.png + content/gfx/button-play.png + content/gfx/catch-action.png + content/gfx/catch.png + content/gfx/cloud.png + content/gfx/currency.png + content/gfx/dialog-bomb.png + content/gfx/dialog-factory.png + content/gfx/dialog-melee.png + content/gfx/dialog-pointer.png + content/gfx/dialog-shooter.png + content/gfx/dialog.png + content/gfx/factory-action.png + content/gfx/factory-idle.png + content/gfx/factory.png + content/gfx/grid.png + content/gfx/help.png + content/gfx/lifes.png + content/gfx/logo-bubble.png + content/gfx/logo-fish.png + content/gfx/logo.png + content/gfx/melee-action.png + content/gfx/melee-idle.png + content/gfx/melee.png + content/gfx/mob-idle.png + content/gfx/mob.png + content/gfx/points.png + content/gfx/projectile-action.png + content/gfx/projectile.png + content/gfx/scores.png + content/gfx/shooter-action.png + content/gfx/shooter-idle.png + content/gfx/shooter.png + content/gfx/sunlight.png + content/gfx/text-1.png + content/gfx/text-2.png + content/gfx/text-3.png + content/gfx/text-blank.png + content/gfx/text-gameover.png + content/gfx/text-go.png + content/gfx/wave.png + content/mobs/MobBase.qml + content/towers/Bomb.qml + content/towers/Factory.qml + content/towers/Melee.qml + content/towers/Ranged.qml + content/towers/TowerBase.qml + + -- cgit v1.2.3