]> git.sesse.net Git - pkanalytics/commitdiff
Hook up the interception button.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Wed, 3 May 2023 22:19:50 +0000 (00:19 +0200)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Wed, 3 May 2023 22:19:50 +0000 (00:19 +0200)
main.cpp

index d9008dd6da2f471b61b02d97c1b478741fb60ee6..907bc2fc2c81c1c462452686bcf914cff9ebe88f 100644 (file)
--- a/main.cpp
+++ b/main.cpp
@@ -132,6 +132,7 @@ MainWindow::MainWindow(EventsModel *events, PlayersModel *players) : events(even
        });
 
        // Defensive events (TODO add more)
+       connect(ui->interception, &QPushButton::clicked, [this]() { set_current_event_type("interception"); });
        connect(ui->defense_label, &ClickableLabel::clicked, [this]() { insert_noplayer_event("set_defense"); });
        connect(ui->their_throwaway, &QPushButton::clicked, [this]() { insert_noplayer_event("their_throwaway"); });
        connect(ui->their_goal, &QPushButton::clicked, [this]() { insert_noplayer_event("their_goal"); });