diff options
author | jan Iversen <jan@casacondor.com> | 2020-01-02 22:13:55 +0100 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2020-01-06 10:34:42 +0900 |
commit | 774ba759e46b61f57b1d3b3f1dc569ae61146f84 (patch) | |
tree | 02782c8b77ffe91d0859782f3c26a4af6ca01714 /desktop-widgets/diveplanner.cpp | |
parent | ff8849a797bd759f752bd50a6c26edfbd5e8ea54 (diff) | |
download | subsurface-774ba759e46b61f57b1d3b3f1dc569ae61146f84.tar.gz |
desktop-widgets: change connect() for triggered(bool)
Change connect for QAction::triggered(bool) to new syntax.
Signed-off-by: Jan Iversen <jan@casacondor.com>
Diffstat (limited to 'desktop-widgets/diveplanner.cpp')
-rw-r--r-- | desktop-widgets/diveplanner.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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); } } |