summaryrefslogtreecommitdiff
Side-by-side diff
Diffstat (more/less context) (show whitespace changes)
-rw-r--r--noncore/games/zsame/StoneWidget.cpp12
-rw-r--r--noncore/games/zsame/ZSameWidget.cpp13
2 files changed, 8 insertions, 17 deletions
diff --git a/noncore/games/zsame/StoneWidget.cpp b/noncore/games/zsame/StoneWidget.cpp
index 5dd0252..f370714 100644
--- a/noncore/games/zsame/StoneWidget.cpp
+++ b/noncore/games/zsame/StoneWidget.cpp
@@ -19,10 +19,7 @@
*/
-#include <stdio.h>
-#include <stdlib.h>
+#include <opie2/oresource.h>
-
-
-#include <qpe/resource.h>
+#include <qbitmap.h>
#include <time.h>
@@ -41,8 +38,5 @@ StoneWidget::StoneWidget( QWidget *parent, int x, int y )
: QWidget(parent,"StoneWidget"), stonefield(x,y)
{
-// setBackgroundPixmap(QPixmap(locate("wallpaper", "Time-For-Lunch-2.jpg")));
-// QPixmap stonemap(locate("appdata", "stones.png"));
-
- QPixmap stonemap = Resource::loadPixmap("zsame/stones" );
+ QPixmap stonemap = Opie::Core::OResource::loadPixmap( "zsame/stones" );
assert(!stonemap.isNull());
diff --git a/noncore/games/zsame/ZSameWidget.cpp b/noncore/games/zsame/ZSameWidget.cpp
index dee4a1c..7bcbee1 100644
--- a/noncore/games/zsame/ZSameWidget.cpp
+++ b/noncore/games/zsame/ZSameWidget.cpp
@@ -20,9 +20,6 @@
*/
-#include <stdio.h>
-
#include <opie2/oapplicationfactory.h>
-
-#include <qpe/resource.h>
+#include <opie2/oresource.h>
#include <qtoolbar.h>
@@ -59,5 +56,5 @@ ZSameWidget::ZSameWidget( QWidget* parent, const char* name, WFlags fl )
QPopupMenu* fileMenu = new QPopupMenu( this );
- QAction* a = new QAction(tr("New Game"), Resource::loadIconSet("new") ,
+ QAction* a = new QAction(tr("New Game"), Opie::Core::OResource::loadPixmap( "new", Opie::Core::OResource::SmallIcon ),
QString::null, 0, this, "new_icon");
a->addTo( fileMenu );
@@ -65,5 +62,5 @@ ZSameWidget::ZSameWidget( QWidget* parent, const char* name, WFlags fl )
connect(a, SIGNAL(activated()), this, SLOT(m_new()));
- a = new QAction(tr("Restart This Board"), Resource::loadIconSet("redo"),
+ a = new QAction(tr("Restart This Board"), Opie::Core::OResource::loadPixmap( "redo", Opie::Core::OResource::SmallIcon ),
QString::null, 0, this, "restart_board" );
a->addTo( fileMenu );
@@ -71,5 +68,5 @@ ZSameWidget::ZSameWidget( QWidget* parent, const char* name, WFlags fl )
restart = a;
- a = new QAction( tr("Undo"), Resource::loadIconSet("undo"),
+ a = new QAction( tr("Undo"), Opie::Core::OResource::loadPixmap( "undo", Opie::Core::OResource::SmallIcon ),
QString::null, 0, this, "undo_action" );
a->addTo( fileMenu );
@@ -77,5 +74,5 @@ ZSameWidget::ZSameWidget( QWidget* parent, const char* name, WFlags fl )
connect( a, SIGNAL(activated()), this, SLOT(m_undo()));
- a = new QAction(tr("Quit"), Resource::loadIconSet("quit_icon"),
+ a = new QAction(tr("Quit"), Opie::Core::OResource::loadPixmap( "quit_icon", Opie::Core::OResource::SmallIcon ),
QString::null, 0, this, "quit_action");
a->addTo( fileMenu );