From 520be78fa81df0e738859973b35b0e09b069e7f3 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Wed, 19 Oct 2022 15:10:14 -0700 Subject: [PATCH] cleanup: use better connect syntax This should be used everywhere by now. Signed-off-by: Dirk Hohndel --- desktop-widgets/simplewidgets.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/desktop-widgets/simplewidgets.cpp b/desktop-widgets/simplewidgets.cpp index a2d055a46..aa7337881 100644 --- a/desktop-widgets/simplewidgets.cpp +++ b/desktop-widgets/simplewidgets.cpp @@ -300,11 +300,11 @@ DiveComponentSelection::DiveComponentSelection(QWidget *parent, struct dive *tar UI_FROM_COMPONENT(weights); UI_FROM_COMPONENT(number); UI_FROM_COMPONENT(when); - connect(ui.buttonBox, SIGNAL(clicked(QAbstractButton *)), this, SLOT(buttonClicked(QAbstractButton *))); + connect(ui.buttonBox, &QDialogButtonBox::clicked, this, &DiveComponentSelection::buttonClicked); QShortcut *close = new QShortcut(QKeySequence(Qt::CTRL | Qt::Key_W), this); - connect(close, SIGNAL(activated()), this, SLOT(close())); + connect(close, &QShortcut::activated, this, &DiveComponentSelection::close); QShortcut *quit = new QShortcut(QKeySequence(Qt::CTRL | Qt::Key_Q), this); - connect(quit, SIGNAL(activated()), parent, SLOT(close())); + connect(quit, &QShortcut::activated, parent, &QWidget::close); } void DiveComponentSelection::buttonClicked(QAbstractButton *button)