desktop-widgets: change connect() for triggered(bool)

Change connect for QAction::triggered(bool) to new syntax.

Signed-off-by: Jan Iversen <jan@casacondor.com>
This commit is contained in:
jan Iversen 2020-01-02 22:13:55 +01:00 committed by Dirk Hohndel
parent ff8849a797
commit 774ba759e4

View file

@ -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);
}
}