From 33792b20f8697dc9666f586c3280448d8d7565a8 Mon Sep 17 00:00:00 2001 From: Vicki Pfau Date: Thu, 10 Feb 2022 14:43:48 -0800 Subject: [PATCH] Qt: Fix build --- src/platform/qt/GDBWindow.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/platform/qt/GDBWindow.cpp b/src/platform/qt/GDBWindow.cpp index 8f1c44fe8..3f1f86efb 100644 --- a/src/platform/qt/GDBWindow.cpp +++ b/src/platform/qt/GDBWindow.cpp @@ -56,7 +56,9 @@ GDBWindow::GDBWindow(GDBController* controller, QWidget* parent) watchpointsSettings->setLayout(watchpointsSettingsLayout); QButtonGroup* watchpointsButtonGroup = new QButtonGroup(watchpointsSettings); - connect(watchpointsButtonGroup, &QButtonGroup::idClicked, controller, &GDBController::setWatchpointsBehavior); + connect(watchpointsButtonGroup, qOverload(&QButtonGroup::buttonClicked), controller, [watchpointsButtonGroup, controller](QAbstractButton* button) { + controller->setWatchpointsBehavior(watchpointsButtonGroup->id(button)); + }); m_watchpointsStandardRadio = new QRadioButton(tr("Standard GDB"), watchpointsSettings); m_watchpointsStandardRadio->setChecked(true);