Screen keep lit when playing
[chessclock] / chessclockwindow.cpp
index 5d42baa..43b64cd 100644 (file)
@@ -41,7 +41,6 @@
 #include <QStackedWidget>
 #include <QProcess>
 #include <QAction>
-#include "classes/screenlitkeeper.h"
 
 ChessClockWindow::ChessClockWindow(QWidget *parent)
     : QMainWindow(parent)
@@ -63,13 +62,9 @@ ChessClockWindow::ChessClockWindow(QWidget *parent)
 
     connect( start_, SIGNAL(selected(TimeControl*)), this, SLOT(startGame(TimeControl*)));
 
-    ScreenLitKeeper* keeper = new ScreenLitKeeper(this);
-    QAction* keepAction = new QAction( tr("Keep screen lit"), this);
-    keepAction->setCheckable(true);
-    connect( keepAction, SIGNAL(triggered(bool)), keeper, SLOT(keepScreenLit(bool)));
 
     // Set up menu
-    menuBar()->addAction( tr("Pause"), this, SLOT(pause()));
+//    menuBar()->addAction( tr("Pause"), this, SLOT(pause()));   // UNUSED - Pause button
     menuBar()->addAction( tr("New game"), this, SLOT(newGame()));
     menuBar()->addAction( keepAction );
     menuBar()->addAction( tr("Visit web page"), this, SLOT(visitWeb()));