From 86a98867f13ba2e71a1ba0d3262a892b96a8b745 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Wed, 12 Apr 2017 20:23:45 -0700 Subject: [PATCH] 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 --- desktop-widgets/tab-widgets/TabDivePhotos.cpp | 8 ++++---- 1 file 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(); }