--- cutemaze.old/src/window.cpp +++ cutemaze/src/window.cpp @@ -46,7 +46,11 @@ toolbar->setIconSize(QSize(22, 22)); toolbar->setToolButtonStyle(Qt::ToolButtonTextBesideIcon); toolbar->addAction(QIcon(":/new.png"), tr("New"), m_board, SLOT(newGame())); + +#ifdef NOTDEF // Settings button doesn't work toolbar->addAction(QIcon(":/settings.png"), tr("Settings"), m_settings, SLOT(show())); +#endif // Endif NOTDEF + toolbar->addAction(QIcon(":/quit.png"), tr("Quit"), this, SLOT(close())); addToolBar(toolbar); setContextMenuPolicy(Qt::NoContextMenu); @@ -68,6 +72,7 @@ QSettings().setValue("Size", size()); m_board->saveGame(); QMainWindow::closeEvent(event); + exit (0); } // ============================================================================