From dfdc651b989550e30f2b72f535ce0cd3431fc9f4 Mon Sep 17 00:00:00 2001 From: drw Date: Fri, 20 May 2005 21:23:29 +0000 Subject: Resource -> OResource, remove some unnecessary includes --- 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 @@ -18,12 +18,9 @@ * */ -#include -#include +#include - - -#include +#include #include #include @@ -40,10 +37,7 @@ struct StoneSlice { 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()); slice=0; 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 @@ -19,11 +19,8 @@ * */ -#include - #include - -#include +#include #include #include @@ -58,25 +55,25 @@ 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 ); a->addTo( tb ); 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 ); connect( a, SIGNAL(activated()), this, SLOT(m_restart())); 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 ); a->addTo( tb ); 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 ); a->addTo( tb ); -- cgit v0.9.0.2