summaryrefslogtreecommitdiffstats
path: root/desktop-widgets/diveplanner.cpp
diff options
context:
space:
mode:
authorGravatar jan Iversen <jan@casacondor.com>2020-01-06 10:39:08 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2020-01-07 03:46:01 +0900
commit8fad93a504bb7d759c1886ee87dcb1a94e8b654d (patch)
treed9bea0bbe32e3cf86a246391d296f58709c50e04 /desktop-widgets/diveplanner.cpp
parentc7fe91a3f8028b3a377a62c46406f2d99fdc013c (diff)
downloadsubsurface-8fad93a504bb7d759c1886ee87dcb1a94e8b654d.tar.gz
desktop-widgets: correct connect for QShortcut
Replace syntax for connect of QShortcut. Signed-off-by: jan Iversen <jan@casacondor.com>
Diffstat (limited to 'desktop-widgets/diveplanner.cpp')
-rw-r--r--desktop-widgets/diveplanner.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/desktop-widgets/diveplanner.cpp b/desktop-widgets/diveplanner.cpp
index f68b5ca19..ece51c531 100644
--- a/desktop-widgets/diveplanner.cpp
+++ b/desktop-widgets/diveplanner.cpp
@@ -166,7 +166,7 @@ DivePlannerWidget::DivePlannerWidget(QWidget *parent, Qt::WindowFlags f) : QWidg
connect(ui.buttonBox, &QDialogButtonBox::accepted, plannerModel, &DivePlannerPointsModel::savePlan);
connect(ui.buttonBox, &QDialogButtonBox::rejected, plannerModel, &DivePlannerPointsModel::cancelPlan);
QShortcut *closeKey = new QShortcut(QKeySequence(Qt::Key_Escape), this);
- connect(closeKey, SIGNAL(activated()), plannerModel, SLOT(cancelPlan()));
+ connect(closeKey, &QShortcut::activated, plannerModel, &DivePlannerPointsModel::cancelPlan);
// This makes shure the spinbox gets a setMinimum(0) on it so we can't have negative time or depth.
ui.tableWidget->view()->setItemDelegateForColumn(DivePlannerPointsModel::DEPTH, new SpinBoxDelegate(0, INT_MAX, 1, this));