diff options
author | Olivier Goffart <ogoffart@trolltech.com> | 2009-05-27 19:04:55 +0200 |
---|---|---|
committer | Olivier Goffart <ogoffart@trolltech.com> | 2009-05-27 19:05:49 +0200 |
commit | 8facefaef36ae313661bbdbcf317c374e35754cb (patch) | |
tree | 1f30aadea95bdd6c2c1b68c383ab4f05f5bba3e8 /examples/animation | |
parent | a9308e78e9b8aea110316c18489dd222936e13e4 (diff) |
Fixes sub-attaq in shadow build.
Reviewed-by: Alexis
Diffstat (limited to 'examples/animation')
-rw-r--r-- | examples/animation/sub-attaq/graphicsscene.cpp | 2 | ||||
-rw-r--r-- | examples/animation/sub-attaq/subattaq.qrc | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/examples/animation/sub-attaq/graphicsscene.cpp b/examples/animation/sub-attaq/graphicsscene.cpp index f2d41bcbd7..e773dae9b1 100644 --- a/examples/animation/sub-attaq/graphicsscene.cpp +++ b/examples/animation/sub-attaq/graphicsscene.cpp @@ -120,7 +120,7 @@ GraphicsScene::GraphicsScene(int x, int y, int width, int height, Mode mode) //parse the xml that contain all data of the game QXmlStreamReader reader; - QFile file(QDir::currentPath() + "/data.xml"); + QFile file(":data.xml"); file.open(QIODevice::ReadOnly); reader.setDevice(&file); LevelDescription currentLevel; diff --git a/examples/animation/sub-attaq/subattaq.qrc b/examples/animation/sub-attaq/subattaq.qrc index c76f8efe1d..80a3af11cc 100644 --- a/examples/animation/sub-attaq/subattaq.qrc +++ b/examples/animation/sub-attaq/subattaq.qrc @@ -34,5 +34,6 @@ <file alias="big/explosion/submarine/step2" >pics/big/explosion/submarine/step2.png</file> <file alias="big/explosion/submarine/step3" >pics/big/explosion/submarine/step3.png</file> <file alias="big/explosion/submarine/step4" >pics/big/explosion/submarine/step4.png</file> + <file>data.xml</file> </qresource> </RCC> |