hildon fullscreen button is back
authorSerge Ziryukin <ftrvxmtrx@gmail.com>
Tue, 13 Apr 2010 18:15:09 +0000 (21:15 +0300)
committerSerge Ziryukin <ftrvxmtrx@gmail.com>
Tue, 13 Apr 2010 18:15:09 +0000 (21:15 +0300)
colorflood/src/CMakeLists.txt
colorflood/src/window.cpp

index a73889e..b7dc884 100644 (file)
@@ -23,7 +23,7 @@ set(moc
   colorbutton.hpp
   colorbuttons.hpp
   field.hpp
-  #fullscreenexitbutton.hpp
+  fullscreenexitbutton.hpp
   window.hpp
   )
 
index 63b485b..ef4f63d 100644 (file)
@@ -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("<font size=\"24\">Turns: %1/%2</font>")
+    turnsLabel->setText(tr("<font size=\"16\">Turns: %1/%2</font>")
                         .arg(turns)
                         .arg(field->getNumTurnsOfSize(field->getSize())));
 }