summaryrefslogtreecommitdiffstats
path: root/desktop-widgets/locationinformation.cpp
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2019-10-14 20:57:13 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2019-10-20 03:51:11 -0400
commitfdfcbd0315d04580bf10d7b9129fa32665dfeaae (patch)
tree8a7beb3796f6d6f4289c502ef95e31cf652351d3 /desktop-widgets/locationinformation.cpp
parent39c36af808047833cd6e4a9b7ab3567e41887766 (diff)
downloadsubsurface-fdfcbd0315d04580bf10d7b9129fa32665dfeaae.tar.gz
Cleanup: use pointer-to-member-function in addAction() calls
Since requiring Qt >= 5.9.1, we can use the pointer-to-member-function overloads of addAction (introduced in Qt 5.6). This has the advantage of compile-time checking of the signal/slot parameters. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'desktop-widgets/locationinformation.cpp')
-rw-r--r--desktop-widgets/locationinformation.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/desktop-widgets/locationinformation.cpp b/desktop-widgets/locationinformation.cpp
index 37bced819..3a0d2f442 100644
--- a/desktop-widgets/locationinformation.cpp
+++ b/desktop-widgets/locationinformation.cpp
@@ -57,7 +57,7 @@ bool LocationInformationWidget::eventFilter(QObject *object, QEvent *ev)
if (ev->type() == QEvent::ContextMenu) {
QContextMenuEvent *ctx = (QContextMenuEvent *)ev;
QMenu contextMenu;
- contextMenu.addAction(tr("Merge into current site"), this, SLOT(mergeSelectedDiveSites()));
+ contextMenu.addAction(tr("Merge into current site"), this, &LocationInformationWidget::mergeSelectedDiveSites);
contextMenu.exec(ctx->globalPos());
return true;
}