mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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:
parent
ff8849a797
commit
774ba759e4
1 changed files with 1 additions and 1 deletions
|
@ -55,7 +55,7 @@ void DiveHandler::contextMenuEvent(QGraphicsSceneContextMenuEvent *event)
|
||||||
QAction *action = new QAction(&m);
|
QAction *action = new QAction(&m);
|
||||||
action->setText(model->data(model->index(i, 0), Qt::DisplayRole).toString());
|
action->setText(model->data(model->index(i, 0), Qt::DisplayRole).toString());
|
||||||
action->setData(i);
|
action->setData(i);
|
||||||
connect(action, SIGNAL(triggered(bool)), this, SLOT(changeGas()));
|
connect(action, &QAction::triggered, this, &DiveHandler::changeGas);
|
||||||
m.addAction(action);
|
m.addAction(action);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue