From 88c0272985fc013f105af21cb45e4de50041f9c2 Mon Sep 17 00:00:00 2001 From: "Steinar H. Gunderson" Date: Mon, 1 May 2023 19:39:46 +0200 Subject: [PATCH] Hook up defensive soft +/-. --- main.cpp | 2 ++ mainwindow.ui | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/main.cpp b/main.cpp index d9c6e88..ea376ce 100644 --- a/main.cpp +++ b/main.cpp @@ -104,6 +104,8 @@ MainWindow::MainWindow(EventsModel *events, PlayersModel *players) : events(even connect(ui->their_goal, &QPushButton::clicked, [this]() { insert_noplayer_event("their_goal"); }); connect(ui->their_pull, &QPushButton::clicked, [this]() { insert_noplayer_event("their_pull"); }); connect(ui->our_defense, &QPushButton::clicked, [this]() { set_current_event_type("defense"); }); // TODO: player-connected + connect(ui->defensive_soft_plus, &QPushButton::clicked, [this]() { set_current_event_type("defensive_soft_plus"); }); // TODO: player-connected + connect(ui->defensive_soft_minus, &QPushButton::clicked, [this]() { set_current_event_type("defensive_soft_minus"); }); // TODO: player-connected // Misc. events connect(ui->substitution, &QPushButton::clicked, [this]() { make_substitution(); }); diff --git a/mainwindow.ui b/mainwindow.ui index c3ba4d6..ad5ec9d 100644 --- a/mainwindow.ui +++ b/mainwindow.ui @@ -321,7 +321,7 @@ - + Soft plus (&+) @@ -342,7 +342,7 @@ - + Soft minus (&-) -- 2.39.2