From 8fad93a504bb7d759c1886ee87dcb1a94e8b654d Mon Sep 17 00:00:00 2001 From: jan Iversen Date: Mon, 6 Jan 2020 10:39:08 +0100 Subject: desktop-widgets: correct connect for QShortcut Replace syntax for connect of QShortcut. Signed-off-by: jan Iversen --- desktop-widgets/diveplanner.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'desktop-widgets/diveplanner.cpp') 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)); -- cgit v1.2.3-70-g09d2