author | harlekin <harlekin> | 2003-03-24 18:05:18 (UTC) |
---|---|---|
committer | harlekin <harlekin> | 2003-03-24 18:05:18 (UTC) |
commit | 58f8a4fe595182abb4372ab4f990e39cf67ef08a (patch) (side-by-side diff) | |
tree | 32dead4e25c41637cd63093dd9801fcd76dc9d5c /noncore | |
parent | 84372ba20c0b1b09c1606212ec66c9d04588b90e (diff) | |
download | opie-58f8a4fe595182abb4372ab4f990e39cf67ef08a.zip opie-58f8a4fe595182abb4372ab4f990e39cf67ef08a.tar.gz opie-58f8a4fe595182abb4372ab4f990e39cf67ef08a.tar.bz2 |
moved grass icon to snake dir
-rw-r--r-- | noncore/games/snake/interface.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/noncore/games/snake/interface.cpp b/noncore/games/snake/interface.cpp index c824543..0f312ac 100644 --- a/noncore/games/snake/interface.cpp +++ b/noncore/games/snake/interface.cpp @@ -12,49 +12,49 @@ ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. ** ** See http://www.trolltech.com/gpl/ for GPL licensing information. ** ** Contact info@trolltech.com if any conditions of this licensing are ** not clear to you. ** **********************************************************************/ #include "interface.h" #include <qpe/resource.h> #include <qpe/qpetoolbar.h> #include <qtoolbutton.h> #include <qstyle.h> #include <qapplication.h> #include <qmessagebox.h> SnakeGame::SnakeGame(QWidget* parent, const char* name, WFlags f) : QMainWindow(parent,name,f), canvas(232, 258) { setCaption( tr("Snake") ); - QPixmap bg = Resource::loadPixmap("grass"); + QPixmap bg = Resource::loadPixmap("snake/grass"); canvas.setBackgroundPixmap(bg); canvas.setUpdatePeriod(100); snake = 0; cv = new QCanvasView(&canvas, this); pauseTimer = new QTimer(this); connect(pauseTimer, SIGNAL(timeout()), this, SLOT(wait()) ); setToolBarsMovable( FALSE ); QPEToolBar* toolbar = new QPEToolBar( this); toolbar->setHorizontalStretchable( TRUE ); QPixmap newicon = Resource::loadPixmap("ksnake"); setIcon(newicon); (void)new QToolButton(newicon, tr("New Game"), 0, this, SLOT(newGame()), toolbar, "New Game"); scorelabel = new QLabel(toolbar); showScore(0); scorelabel->setBackgroundMode( PaletteButton ); scorelabel->setAlignment( AlignRight | AlignVCenter | ExpandTabs ); toolbar->setStretchableWidget( scorelabel ); |