💄 Added dialog for starting a new game

main
Isabell Pflug 2 years ago
parent 2d3b548822
commit f774fb6545

@ -10,8 +10,13 @@ void MainWindow::buttonPressed(QPushButton *button) {
}
void MainWindow::newGame() {
QMessageBox newGameDialog;
newGameDialog.setText("Do you really want to start a new game?");
newGameDialog.setStandardButtons(QMessageBox::Yes | QMessageBox::Cancel);
if (newGameDialog.exec() == QMessageBox::Yes) {
initialiseGame();
}
}
// initialisation functions
void MainWindow::initialiseGame() {

@ -7,6 +7,7 @@
#include <QDebug>
#include <QGenericMatrix>
#include <QMainWindow>
#include <QMessageBox>
#include <QPushButton>
#include <QSettings>

Loading…
Cancel
Save