author | drw <drw> | 2005-05-18 14:28:05 (UTC) |
---|---|---|
committer | drw <drw> | 2005-05-18 14:28:05 (UTC) |
commit | cb243f00d12c5fc40de02e7f9f20009b52303a66 (patch) (unidiff) | |
tree | f85e840af4db55a67a2a057d6a7f4ef59bfb4385 | |
parent | 600f14a61969ec2edd6d89efecaac997b1c6464f (diff) | |
download | opie-cb243f00d12c5fc40de02e7f9f20009b52303a66.zip opie-cb243f00d12c5fc40de02e7f9f20009b52303a66.tar.gz opie-cb243f00d12c5fc40de02e7f9f20009b52303a66.tar.bz2 |
Resource -> OResource
-rw-r--r-- | noncore/games/qasteroids/toplevel.cpp | 9 | ||||
-rw-r--r-- | noncore/games/qasteroids/view.cpp | 14 |
2 files changed, 10 insertions, 13 deletions
diff --git a/noncore/games/qasteroids/toplevel.cpp b/noncore/games/qasteroids/toplevel.cpp index 9053d3d..d1e1fac 100644 --- a/noncore/games/qasteroids/toplevel.cpp +++ b/noncore/games/qasteroids/toplevel.cpp | |||
@@ -28,4 +28,5 @@ | |||
28 | 28 | ||
29 | #include <opie2/oresource.h> | ||
30 | |||
29 | #include <qpe/qpeapplication.h> | 31 | #include <qpe/qpeapplication.h> |
30 | #include <qpe/resource.h> | ||
31 | 32 | ||
@@ -187,3 +188,3 @@ KAstTopLevel::KAstTopLevel( QWidget *parent, const char *_name, WFlags fl ) | |||
187 | label = new QLabel( mainWin ); | 188 | label = new QLabel( mainWin ); |
188 | label->setPixmap( Resource::loadPixmap("qasteroids/powerups/brake.png") ); | 189 | label->setPixmap( Opie::Core::OResource::loadPixmap("qasteroids/powerups/brake.png") ); |
189 | label->setFixedWidth( 16 ); | 190 | label->setFixedWidth( 16 ); |
@@ -202,3 +203,3 @@ KAstTopLevel::KAstTopLevel( QWidget *parent, const char *_name, WFlags fl ) | |||
202 | label = new QLabel( mainWin ); | 203 | label = new QLabel( mainWin ); |
203 | label->setPixmap( Resource::loadPixmap("qasteroids/powerups/shield.png") ); | 204 | label->setPixmap( Opie::Core::OResource::loadPixmap("qasteroids/powerups/shield.png") ); |
204 | label->setFixedWidth( 16 ); | 205 | label->setFixedWidth( 16 ); |
@@ -217,3 +218,3 @@ KAstTopLevel::KAstTopLevel( QWidget *parent, const char *_name, WFlags fl ) | |||
217 | label = new QLabel( mainWin ); | 218 | label = new QLabel( mainWin ); |
218 | label->setPixmap( Resource::loadPixmap("qasteroids/powerups/shoot.png") ); | 219 | label->setPixmap( Opie::Core::OResource::loadPixmap("qasteroids/powerups/shoot.png") ); |
219 | label->setFixedWidth( 16 ); | 220 | label->setFixedWidth( 16 ); |
diff --git a/noncore/games/qasteroids/view.cpp b/noncore/games/qasteroids/view.cpp index 3a4d410..6cab700 100644 --- a/noncore/games/qasteroids/view.cpp +++ b/noncore/games/qasteroids/view.cpp | |||
@@ -26,4 +26,4 @@ | |||
26 | 26 | ||
27 | #include <qpe/resource.h> | 27 | #include <opie2/oresource.h> |
28 | 28 | #include <qpe/qpeapplication.h> | |
29 | 29 | ||
@@ -32,3 +32,3 @@ | |||
32 | 32 | ||
33 | #define IMG_BACKGROUND "qasteroids/bg.png" | 33 | #define IMG_BACKGROUND "qasteroids/bg" |
34 | 34 | ||
@@ -97,4 +97,3 @@ KAsteroidsView::KAsteroidsView( QWidget *parent, const char *name ) | |||
97 | 97 | ||
98 | QPixmap pm( Resource::loadPixmap(IMG_BACKGROUND) ); | 98 | field.setBackgroundPixmap( Opie::Core::OResource::loadPixmap(IMG_BACKGROUND) ); |
99 | field.setBackgroundPixmap( pm ); | ||
100 | 99 | ||
@@ -250,6 +249,3 @@ void KAsteroidsView::readSprites() | |||
250 | { | 249 | { |
251 | QString sprites_prefix = Resource::findPixmap( IMG_BACKGROUND ); | 250 | QString sprites_prefix = QPEApplication::qpeDir() + "pics/qasteroids"; |
252 | int sep = sprites_prefix.findRev( "/" ); | ||
253 | |||
254 | sprites_prefix.truncate( sep ); | ||
255 | 251 | ||