]> git.sesse.net Git - pkanalytics/commitdiff
Remove the “our foul” button for now.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Wed, 3 May 2023 07:25:55 +0000 (09:25 +0200)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Wed, 3 May 2023 07:25:55 +0000 (09:25 +0200)
main.cpp
mainwindow.ui

index faac256aa15818cbccd280ca6fd991342b29208b..611e6c1a4579918eccb373a9840e9de7a479b206 100644 (file)
--- a/main.cpp
+++ b/main.cpp
@@ -341,7 +341,6 @@ void MainWindow::update_action_buttons(uint64_t t)
                ui->defensive_soft_plus->setEnabled(false);
                ui->defensive_soft_minus->setEnabled(false);
                ui->their_pull->setEnabled(false);
-               ui->our_foul->setEnabled(false);
                return;
        } else {
                ui->stoppage->setText("Stoppage (&v)");
@@ -372,7 +371,6 @@ void MainWindow::update_action_buttons(uint64_t t)
                ui->their_goal->setEnabled(false);
                ui->defensive_soft_plus->setEnabled(false);
                ui->defensive_soft_minus->setEnabled(false);
-               ui->our_foul->setEnabled(false);
                return;
        }
        if (s.pull_state == EventsModel::Status::PULL_IN_AIR) {
@@ -401,7 +399,6 @@ void MainWindow::update_action_buttons(uint64_t t)
                ui->their_goal->setEnabled(false);
                ui->defensive_soft_plus->setEnabled(false);
                ui->defensive_soft_minus->setEnabled(false);
-               ui->our_foul->setEnabled(false);
                return;
        }
 
@@ -419,7 +416,6 @@ void MainWindow::update_action_buttons(uint64_t t)
        ui->their_goal->setEnabled(s.attack_state == EventsModel::Status::DEFENSE);
        ui->defensive_soft_plus->setEnabled(s.attack_state == EventsModel::Status::DEFENSE && has_selection_with_player);
        ui->defensive_soft_minus->setEnabled(s.attack_state == EventsModel::Status::DEFENSE && has_selection_with_player);
-       ui->our_foul->setEnabled(s.attack_state == EventsModel::Status::DEFENSE && has_selection_with_player);
        ui->their_pull->setEnabled(false);
 }
 
index 24fffb3c0f7737a3809cfe72cb1a40f058cb810f..c672fd5be66bc75c0263a29f113cda028a7dca09 100644 (file)
            </widget>
           </item>
           <item row="3" column="1">
-           <widget class="QPushButton" name="our_foul">
+           <widget class="QPushButton" name="unused_button2">
+            <property name="enabled">
+             <bool>false</bool>
+            </property>
             <property name="text">
-             <string>Our foul (&amp;o)</string>
+             <string/>
             </property>
             <property name="shortcut">
              <string>O</string>