#include "chessclockwindow.h"
+#include "classes/clockswidget.h"
+#include "classes/chessclockwidget.h"
+
+#include <QIcon>
+#include <QApplication>
+
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()