X-Git-Url: http://vcs.maemo.org/git/?a=blobdiff_plain;f=chessclockwindow.cpp;h=49e2aaeeb3d18413d9c7c60e911e556455beb3c3;hb=ca6853daf22068621981987588b9d670f03a5264;hp=017819df6ab1ae6b99f259273737e732822e3871;hpb=a08f83a286b96562233e9753c9fb189cb1126fc0;p=chessclock diff --git a/chessclockwindow.cpp b/chessclockwindow.cpp index 017819d..49e2aae 100644 --- a/chessclockwindow.cpp +++ b/chessclockwindow.cpp @@ -21,6 +21,7 @@ #include "chessclockwindow.h" +#include "classes/clockswidget.h" #include "classes/chessclockwidget.h" #include @@ -33,9 +34,15 @@ ChessClockWindow::ChessClockWindow(QWidget *parent) setWindowIcon( QIcon(":/rc/pic/chessclock.png")); setWindowTitle( QString("%1 %2").arg(qApp->applicationName()).arg(qApp->applicationVersion()) ); - ChessClockWidget* widget = new ChessClockWidget(true, this); - setCentralWidget(widget); - widget->startTurn(); + 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); }