From 591fe0685bed981b7bc2824954a4df0c980f1166 Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Fri, 12 Jul 2013 14:44:46 +0000 Subject: Adds an embeded application icon, updates the TODO list. --- TODO | 1 + src/mainwindow.cc | 27 ++++++++++++++++++++++++++- 2 files changed, 27 insertions(+), 1 deletion(-) diff --git a/TODO b/TODO index b0a4d16..ded2f9b 100644 --- a/TODO +++ b/TODO @@ -1,5 +1,6 @@ - Add Help->About - Add confirm dialgs on Quit and New +- Mark invalid input - [VERIFY] Have the options in the Move menu call validate() before solving. - [VERIFY] Incorporate validate() into the menu diff --git a/src/mainwindow.cc b/src/mainwindow.cc index 5a80459..873502e 100644 --- a/src/mainwindow.cc +++ b/src/mainwindow.cc @@ -2,10 +2,35 @@ #include "mainwindow.h" #include "solverwindow.h" +/* XPM */ +const char *icon_xpm[] = { +"16 16 2 1", +" c #000000", +". c #FFFFFF", +" ", +" .... .... .... ", +" .... .... .... ", +" .... .... .... ", +" .... .... .... ", +" ", +" .... .... .... ", +" .... .... .... ", +" .... .... .... ", +" .... .... .... ", +" ", +" .... .... .... ", +" .... .... .... ", +" .... .... .... ", +" .... .... .... ", +" "}; + + MainWindow::MainWindow() { - setWindowTitle(tr("Sudoku")); + setWindowTitle(tr("Sudoku")); + setWindowIcon(QIcon(QPixmap(icon_xpm))); + mainwindow_solverwindow = new SolverWindow(); setCentralWidget(mainwindow_solverwindow); -- cgit v1.2.3