|
|
@ -95,6 +95,7 @@ void MainWindow::buttonPressed(int row, int column) {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void MainWindow::newGame() {
|
|
|
|
void MainWindow::newGame() {
|
|
|
|
|
|
|
|
MainWindow::setEnabled(false);
|
|
|
|
QMessageBox newGameDialog;
|
|
|
|
QMessageBox newGameDialog;
|
|
|
|
newGameDialog.setText("Do you really want to start a new game?");
|
|
|
|
newGameDialog.setText("Do you really want to start a new game?");
|
|
|
|
newGameDialog.setStandardButtons(QMessageBox::Yes | QMessageBox::Cancel);
|
|
|
|
newGameDialog.setStandardButtons(QMessageBox::Yes | QMessageBox::Cancel);
|
|
|
@ -103,6 +104,7 @@ void MainWindow::newGame() {
|
|
|
|
refreshButtonGrid();
|
|
|
|
refreshButtonGrid();
|
|
|
|
ui->lcdScore->display(0);
|
|
|
|
ui->lcdScore->display(0);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
MainWindow::setEnabled(true);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// initialisation functions
|
|
|
|
// initialisation functions
|
|
|
|