summaryrefslogtreecommitdiffstats
path: root/desktop-widgets/tab-widgets
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2017-04-12 20:23:45 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2017-04-12 20:24:24 -0700
commit86a98867f13ba2e71a1ba0d3262a892b96a8b745 (patch)
treec4e3f4de9263e9d96e51bdaf5eb7413977cabca5 /desktop-widgets/tab-widgets
parent058179a3054600a8ee5e11c130f0f71a839045f1 (diff)
downloadsubsurface-86a98867f13ba2e71a1ba0d3262a892b96a8b745.tar.gz
Fix build against older Qt versions
While the new syntax is nicer and faster, this isn't supported prior to Qt 5.6 and we still support 5.5 on older OSs. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'desktop-widgets/tab-widgets')
-rw-r--r--desktop-widgets/tab-widgets/TabDivePhotos.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/desktop-widgets/tab-widgets/TabDivePhotos.cpp b/desktop-widgets/tab-widgets/TabDivePhotos.cpp
index 7f8b3a8b0..2531cd247 100644
--- a/desktop-widgets/tab-widgets/TabDivePhotos.cpp
+++ b/desktop-widgets/tab-widgets/TabDivePhotos.cpp
@@ -42,11 +42,11 @@ void TabDivePhotos::clear()
void TabDivePhotos::contextMenuEvent(QContextMenuEvent *event)
{
QMenu popup(this);
- popup.addAction(tr("Load image(s) from file(s)"), this, &TabDivePhotos::addPhotosFromFile);
- popup.addAction(tr("Load image(s) from web"), this, &TabDivePhotos::addPhotosFromURL);
+ popup.addAction(tr("Load image(s) from file(s)"), this, SLOT(addPhotosFromFile));
+ popup.addAction(tr("Load image(s) from web"), this, SLOT(addPhotosFromURL));
popup.addSeparator();
- popup.addAction(tr("Delete selected images"), this, &TabDivePhotos::removeSelectedPhotos);
- popup.addAction(tr("Delete all images"), this, &TabDivePhotos::removeAllPhotos);
+ popup.addAction(tr("Delete selected images"), this, SLOT(removeSelectedPhotos));
+ popup.addAction(tr("Delete all images"), this, SLOT(removeAllPhotos));
popup.exec(event->globalPos());
event->accept();
}