Loading Statsgen/forms/mainwindow.ui +10 −3 Original line number Diff line number Diff line Loading @@ -109,10 +109,17 @@ </widget> </item> <item row="1" column="1"> <widget class="QLineEdit" name="ThreadlineEdit"/> <widget class="QSpinBox" name="ThreadlineEdit"> <property name="minimum"> <number>1</number> </property> <property name="maximum"> <number>64</number> </property> </widget> </item> <item row="1" column="0"> <widget class="QCheckBox" name="threadsCheckBox"> <widget class="QLabel" name="threadsCheckBox"> <property name="text"> <string>Number of threads</string> </property> Loading Loading @@ -376,7 +383,7 @@ <x>0</x> <y>0</y> <width>1350</width> <height>22</height> <height>25</height> </rect> </property> </widget> Loading Statsgen/src/gui/mainwindow.cpp +10 −14 Original line number Diff line number Diff line Loading @@ -56,8 +56,6 @@ void MainWindow::startGame() { stats->setWithcount(true); } if(ui->threadsCheckBox->isChecked()) { try { stats->setNbThread(std::stoi(ui->ThreadlineEdit->text().toStdString())); Loading @@ -71,8 +69,6 @@ void MainWindow::startGame() { stats->setNbThread(1); } } if(ui->regexCheckBox->isChecked()) { stats->setRegex(ui->RegexlineEdit->text().toStdString()); Loading Loading
Statsgen/forms/mainwindow.ui +10 −3 Original line number Diff line number Diff line Loading @@ -109,10 +109,17 @@ </widget> </item> <item row="1" column="1"> <widget class="QLineEdit" name="ThreadlineEdit"/> <widget class="QSpinBox" name="ThreadlineEdit"> <property name="minimum"> <number>1</number> </property> <property name="maximum"> <number>64</number> </property> </widget> </item> <item row="1" column="0"> <widget class="QCheckBox" name="threadsCheckBox"> <widget class="QLabel" name="threadsCheckBox"> <property name="text"> <string>Number of threads</string> </property> Loading Loading @@ -376,7 +383,7 @@ <x>0</x> <y>0</y> <width>1350</width> <height>22</height> <height>25</height> </rect> </property> </widget> Loading
Statsgen/src/gui/mainwindow.cpp +10 −14 Original line number Diff line number Diff line Loading @@ -56,8 +56,6 @@ void MainWindow::startGame() { stats->setWithcount(true); } if(ui->threadsCheckBox->isChecked()) { try { stats->setNbThread(std::stoi(ui->ThreadlineEdit->text().toStdString())); Loading @@ -71,8 +69,6 @@ void MainWindow::startGame() { stats->setNbThread(1); } } if(ui->regexCheckBox->isChecked()) { stats->setRegex(ui->RegexlineEdit->text().toStdString()); Loading