X-Git-Url: http://git.maemo.org/git/?p=colorflood;a=blobdiff_plain;f=colorflood%2Fsrc%2Fwindow.cpp;h=ef4f63d9075f14c1fcbcd933b6620ebcb2bc92cd;hp=63b485b148a76eea9bd2cdab2403bfacd4725dca;hb=fa21544239a906286a6113ea442f84a23b247e13;hpb=9b18c910c4298b3f2a3667bd6fa16ca7231dfc04 diff --git a/colorflood/src/window.cpp b/colorflood/src/window.cpp index 63b485b..ef4f63d 100644 --- a/colorflood/src/window.cpp +++ b/colorflood/src/window.cpp @@ -19,7 +19,7 @@ #include "window.hpp" #include "colorbuttons.hpp" #include "field.hpp" -//#include "fullscreenexitbutton.hpp" +#include "fullscreenexitbutton.hpp" Window::Window () : QWidget() @@ -27,7 +27,7 @@ Window::Window () setWindowTitle("Color Flood"); setWindowIcon(QIcon(":/images/icon_48x48.png")); - //new FullScreenExitButton(this); + new FullScreenExitButton(this); int turns; field = new Field(this, &turns); @@ -49,7 +49,7 @@ Window::Window () updateTurns(turns); QHBoxLayout *secondary = new QHBoxLayout; - QPushButton *toggleFS = new QPushButton(QIcon("/usr/share/icons/hicolor/64x64/hildon/general_fullsize.png"), tr("Toggle fullscreen"), this); + QPushButton *toggleFS = new QPushButton(QPixmap("/usr/share/icons/hicolor/64x64/hildon/general_fullsize"), tr("Toggle fullscreen"), this); QObject::connect(toggleFS, SIGNAL(pressed()), this, SLOT(toggleFullscreen())); QPushButton *newGame = new QPushButton(tr("New game"), this); QObject::connect(newGame, SIGNAL(pressed()), field, SLOT(randomize())); @@ -81,7 +81,7 @@ Window::Window () void Window::updateTurns (int turns) { /*: number of turns */ - turnsLabel->setText(tr("Turns: %1/%2") + turnsLabel->setText(tr("Turns: %1/%2") .arg(turns) .arg(field->getNumTurnsOfSize(field->getSize()))); }