From: Steinar H. Gunderson Date: Wed, 3 May 2023 22:19:50 +0000 (+0200) Subject: Hook up the interception button. X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=a0bab7b18b4e5212c4112cec0fe882e4b584f50c;hp=0c2456af6161a3e5b0accdcd7bdfca59a75a446e;p=pkanalytics Hook up the interception button. --- diff --git a/main.cpp b/main.cpp index d9008dd..907bc2f 100644 --- 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"); });