projects
/
chessclock
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Screen keep lit when playing
[chessclock]
/
chessclockwindow.cpp
diff --git
a/chessclockwindow.cpp
b/chessclockwindow.cpp
index
5d42baa
..
43b64cd
100644
(file)
--- a/
chessclockwindow.cpp
+++ b/
chessclockwindow.cpp
@@
-41,7
+41,6
@@
#include <QStackedWidget>
#include <QProcess>
#include <QAction>
#include <QStackedWidget>
#include <QProcess>
#include <QAction>
-#include "classes/screenlitkeeper.h"
ChessClockWindow::ChessClockWindow(QWidget *parent)
: QMainWindow(parent)
ChessClockWindow::ChessClockWindow(QWidget *parent)
: QMainWindow(parent)
@@
-63,13
+62,9
@@
ChessClockWindow::ChessClockWindow(QWidget *parent)
connect( start_, SIGNAL(selected(TimeControl*)), this, SLOT(startGame(TimeControl*)));
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
// 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()));
menuBar()->addAction( tr("New game"), this, SLOT(newGame()));
menuBar()->addAction( keepAction );
menuBar()->addAction( tr("Visit web page"), this, SLOT(visitWeb()));