From 774ba759e46b61f57b1d3b3f1dc569ae61146f84 Mon Sep 17 00:00:00 2001 From: jan Iversen Date: Thu, 2 Jan 2020 22:13:55 +0100 Subject: [PATCH] desktop-widgets: change connect() for triggered(bool) Change connect for QAction::triggered(bool) to new syntax. Signed-off-by: Jan Iversen --- desktop-widgets/diveplanner.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/desktop-widgets/diveplanner.cpp b/desktop-widgets/diveplanner.cpp index 37fed9d7b..c1262d76f 100644 --- a/desktop-widgets/diveplanner.cpp +++ b/desktop-widgets/diveplanner.cpp @@ -55,7 +55,7 @@ void DiveHandler::contextMenuEvent(QGraphicsSceneContextMenuEvent *event) QAction *action = new QAction(&m); action->setText(model->data(model->index(i, 0), Qt::DisplayRole).toString()); action->setData(i); - connect(action, SIGNAL(triggered(bool)), this, SLOT(changeGas())); + connect(action, &QAction::triggered, this, &DiveHandler::changeGas); m.addAction(action); } }