Commit b9c8552a authored by Mathieu Valois's avatar Mathieu Valois
Browse files

remove useless checkbox

parent aef82776
Loading
Loading
Loading
Loading
+11 −8
Original line number Diff line number Diff line
@@ -94,7 +94,7 @@
            <x>20</x>
            <y>30</y>
            <width>260</width>
            <height>91</height>
            <height>103</height>
           </rect>
          </property>
          <layout class="QGridLayout" name="gridLayout_2">
@@ -108,13 +108,6 @@
             </property>
            </widget>
           </item>
           <item row="1" column="0">
            <widget class="QCheckBox" name="threadsCheckBox">
             <property name="text">
              <string>Number of threads</string>
             </property>
            </widget>
           </item>
           <item row="2" column="0">
            <widget class="QCheckBox" name="regexCheckBox">
             <property name="text">
@@ -139,6 +132,16 @@
             </property>
            </widget>
           </item>
           <item row="1" column="0">
            <widget class="QLabel" name="label">
             <property name="layoutDirection">
              <enum>Qt::LeftToRight</enum>
             </property>
             <property name="text">
              <string>Number of threads</string>
             </property>
            </widget>
           </item>
          </layout>
         </widget>
        </widget>
+0 −6
Original line number Diff line number Diff line
@@ -57,8 +57,6 @@ void MainWindow::startGame() {
        stats->setWithcount(true);
    }

    if(ui->threadsCheckBox->isChecked())
    {
    try
    {
        stats->setNbThread(stoi(ui->threadNumberSpin->text().toStdString()));
@@ -72,8 +70,6 @@ void MainWindow::startGame() {
        stats->setNbThread(1);
    }

    }

    if(ui->regexCheckBox->isChecked())
    {
        stats->setRegex(ui->RegexlineEdit->text().toStdString());
@@ -160,7 +156,6 @@ void MainWindow::startGame() {
    ui->MinOccSpecialSpin->setDisabled(true);
    ui->MinOccDigitsSpin->setDisabled(true);
    ui->startButton->setDisabled(true);
    ui->threadsCheckBox->setDisabled(true);
    ui->topCheckBox->setDisabled(true);
    ui->regexCheckBox->setDisabled(true);
    ui->maxAdvancedCheckBox->setDisabled(true);
@@ -255,7 +250,6 @@ void MainWindow::handleResults()
    ui->MinOccSpecialSpin->setDisabled(false);
    ui->MinOccDigitsSpin->setDisabled(false);
    ui->startButton->setDisabled(false);
    ui->threadsCheckBox->setDisabled(false);
    ui->topCheckBox->setDisabled(false);
    ui->regexCheckBox->setDisabled(false);
    ui->maxAdvancedCheckBox->setDisabled(false);