X-Git-Url: https://vcs.maemo.org/git/?a=blobdiff_plain;f=chessclockwindow.cpp;h=49e2aaeeb3d18413d9c7c60e911e556455beb3c3;hb=ca6853daf22068621981987588b9d670f03a5264;hp=b41a8934af19fe9c9b87dec5cb53996e51709f5c;hpb=0488ea4e4628cf9e931a6e35540123fb854ff189;p=chessclock diff --git a/chessclockwindow.cpp b/chessclockwindow.cpp index b41a893..49e2aae 100644 --- a/chessclockwindow.cpp +++ b/chessclockwindow.cpp @@ -21,9 +21,29 @@ #include "chessclockwindow.h" +#include "classes/clockswidget.h" +#include "classes/chessclockwidget.h" + +#include +#include + ChessClockWindow::ChessClockWindow(QWidget *parent) : QMainWindow(parent) { + + setWindowIcon( QIcon(":/rc/pic/chessclock.png")); + setWindowTitle( QString("%1 %2").arg(qApp->applicationName()).arg(qApp->applicationVersion()) ); + + ChessClockWidget* white = new ChessClockWidget(true, this); + white->setGreenTime(5000); + ChessClockWidget* black = new ChessClockWidget(false, this); + white->startTurn(); + black->repaintClock(); + + clocks_ = new ClocksWidget( this ); + setCentralWidget( clocks_ ); + clocks_->setClocks(white, black); + } ChessClockWindow::~ChessClockWindow()