summaryrefslogtreecommitdiff
path: root/noncore/games
authordrw <drw>2005-05-18 00:07:05 (UTC)
committer drw <drw>2005-05-18 00:07:05 (UTC)
commit600f14a61969ec2edd6d89efecaac997b1c6464f (patch) (side-by-side diff)
tree3700d6b7a98f67f423e9316aad844d377377ab65 /noncore/games
parent73738d14ca541eaa41b8ee81168e98826752a98c (diff)
downloadopie-600f14a61969ec2edd6d89efecaac997b1c6464f.zip
opie-600f14a61969ec2edd6d89efecaac997b1c6464f.tar.gz
opie-600f14a61969ec2edd6d89efecaac997b1c6464f.tar.bz2
Resource -> OResource, set application caption
Diffstat (limited to 'noncore/games') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/games/go/gowidget.cpp34
1 files changed, 13 insertions, 21 deletions
diff --git a/noncore/games/go/gowidget.cpp b/noncore/games/go/gowidget.cpp
index ec03c1d..bc5d788 100644
--- a/noncore/games/go/gowidget.cpp
+++ b/noncore/games/go/gowidget.cpp
@@ -24,4 +24,4 @@
#include <opie2/odebug.h>
+#include <opie2/oresource.h>
#include <qpe/config.h>
-#include <qpe/resource.h>
using namespace Opie::Core;
@@ -41,5 +41,2 @@ static int current_handicap = 1;
static QBrush *goBrush;
-//static QImage *newBlackStone;
-//static QImage *blackStone;
-//static QImage *whiteStone;
static QPixmap *newBlackStone;
@@ -53,2 +50,3 @@ GoMainWidget::GoMainWidget( QWidget *parent, const char* name, WFlags fl) :
{
+ setCaption( tr( "Go" ) );
setToolBarsMovable( FALSE );
@@ -69,3 +67,4 @@ GoMainWidget::GoMainWidget( QWidget *parent, const char* name, WFlags fl) :
- a = new QAction( tr( "Pass" ), Resource::loadPixmap( "pass" ), QString::null, 0, this, 0 );
+ a = new QAction( tr( "Pass" ), Opie::Core::OResource::loadPixmap( "pass", Opie::Core::OResource::SmallIcon ),
+ QString::null, 0, this, 0 );
connect( a, SIGNAL( activated() ), go, SLOT( pass() ) );
@@ -75,3 +74,4 @@ GoMainWidget::GoMainWidget( QWidget *parent, const char* name, WFlags fl) :
- a = new QAction( tr( "Resign" ), Resource::loadPixmap( "reset" ), QString::null, 0, this, 0 );
+ a = new QAction( tr( "Resign" ), Opie::Core::OResource::loadPixmap( "reset", Opie::Core::OResource::SmallIcon ),
+ QString::null, 0, this, 0 );
connect( a, SIGNAL( activated() ), go, SLOT( resign() ) );
@@ -126,15 +126,7 @@ GoWidget::GoWidget( QWidget *parent, const char* name) :
- QPixmap pix = Resource::loadPixmap( "go/pine" );
+ QPixmap pix = Opie::Core::OResource::loadPixmap( "go/pine" );
goBrush = new QBrush( black, pix );
- /*
- QString fn = Resource::findPixmap("Go-black");
- blackStone = new QImage( fn );
- fn = Resource::findPixmap("Go-black-highlight");
- newBlackStone = new QImage( fn );
- fn = Resource::findPixmap("Go-white");
- whiteStone = new QImage( fn );
- */
- blackStone = new QPixmap(Resource::loadPixmap( "Go-black" ));
- whiteStone = new QPixmap(Resource::loadPixmap( "Go-white" ));
- newBlackStone = new QPixmap(Resource::loadPixmap( "Go-black-highlight" ));
+ blackStone = new QPixmap(Opie::Core::OResource::loadPixmap( "Go-black" ));
+ whiteStone = new QPixmap(Opie::Core::OResource::loadPixmap( "Go-white" ));
+ newBlackStone = new QPixmap(Opie::Core::OResource::loadPixmap( "Go-black-highlight" ));
@@ -206,5 +198,5 @@ void GoWidget::resizeEvent( QResizeEvent * )
} else if ( d >= 10 && smallStones ) {
- blackStone = new QPixmap(Resource::loadPixmap( "Go-black" ));
- whiteStone = new QPixmap(Resource::loadPixmap( "Go-white" ));
- newBlackStone = new QPixmap(Resource::loadPixmap( "Go-black-highlight" ));
+ blackStone = new QPixmap(Opie::Core::OResource::loadPixmap( "Go-black" ));
+ whiteStone = new QPixmap(Opie::Core::OResource::loadPixmap( "Go-white" ));
+ newBlackStone = new QPixmap(Opie::Core::OResource::loadPixmap( "Go-black-highlight" ));
smallStones = FALSE;