+
+void MainWindow::solve()
+{
+ // reset current level
+ loadLevel();
+ // and show solution
+ QMessageBox confirm;
+ confirm.setText(tr("Reset the level and show the solution?"));
+ confirm.setInformativeText(tr("If you agree current level will be reloaded and solution will be shown"));
+ confirm.setStandardButtons(QMessageBox::Yes | QMessageBox::No);
+ int confirmation=confirm.exec();
+ if(confirmation==QMessageBox::Yes)
+ ui->playwidget->showSolution();
+}