summaryrefslogtreecommitdiffstats
path: root/examples/animation
diff options
context:
space:
mode:
authorOlivier Goffart <ogoffart@trolltech.com>2009-05-27 17:04:55 (GMT)
committerOlivier Goffart <ogoffart@trolltech.com>2009-05-27 17:05:49 (GMT)
commit8facefaef36ae313661bbdbcf317c374e35754cb (patch)
tree1f30aadea95bdd6c2c1b68c383ab4f05f5bba3e8 /examples/animation
parenta9308e78e9b8aea110316c18489dd222936e13e4 (diff)
downloadQt-8facefaef36ae313661bbdbcf317c374e35754cb.zip
Qt-8facefaef36ae313661bbdbcf317c374e35754cb.tar.gz
Qt-8facefaef36ae313661bbdbcf317c374e35754cb.tar.bz2
Fixes sub-attaq in shadow build.
Reviewed-by: Alexis
Diffstat (limited to 'examples/animation')
-rw-r--r--examples/animation/sub-attaq/graphicsscene.cpp2
-rw-r--r--examples/animation/sub-attaq/subattaq.qrc1
2 files changed, 2 insertions, 1 deletions
diff --git a/examples/animation/sub-attaq/graphicsscene.cpp b/examples/animation/sub-attaq/graphicsscene.cpp
index f2d41bc..e773dae 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 c76f8ef..80a3af1 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>