QMainWindow(parent),
ui(new Ui::MainWindow)
{
- bestScore=0;
- readSettings();
+ bestScore=0;
+ readSettings();
ui->setupUi(this);
statusLed = new QLed(ui->verticalLayoutWidget);
ui->horizontalLayout_4->insertWidget(0,statusLed);
sscore.append("\n Best score: ");
sscore.append(QString::number(bestScore));
QMessageBox::warning(this, tr("End Game"),sscore,QMessageBox::Escape);
- //tread.genera();
- exit(0);
+ bestScore=0;
+ readSettings();
+ tread.genera();
+
+ //exit(0);
}
void MainWindow::disableAll(){