summaryrefslogtreecommitdiffstats
path: root/desktop-widgets
diff options
context:
space:
mode:
Diffstat (limited to 'desktop-widgets')
-rw-r--r--desktop-widgets/tab-widgets/TabDivePhotos.cpp8
-rw-r--r--desktop-widgets/tab-widgets/TabDivePhotos.h3
2 files changed, 6 insertions, 5 deletions
diff --git a/desktop-widgets/tab-widgets/TabDivePhotos.cpp b/desktop-widgets/tab-widgets/TabDivePhotos.cpp
index 143c3a02a..7d6223184 100644
--- a/desktop-widgets/tab-widgets/TabDivePhotos.cpp
+++ b/desktop-widgets/tab-widgets/TabDivePhotos.cpp
@@ -43,11 +43,11 @@ void TabDivePhotos::clear()
void TabDivePhotos::contextMenuEvent(QContextMenuEvent *event)
{
QMenu popup(this);
- popup.addAction(tr("Load image(s) from file(s)"), this, SLOT(addPhotosFromFile));
- popup.addAction(tr("Load image(s) from web"), this, SLOT(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, SLOT(removeSelectedPhotos));
- popup.addAction(tr("Delete all images"), this, SLOT(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();
}
diff --git a/desktop-widgets/tab-widgets/TabDivePhotos.h b/desktop-widgets/tab-widgets/TabDivePhotos.h
index 97f6f86d6..9b711595c 100644
--- a/desktop-widgets/tab-widgets/TabDivePhotos.h
+++ b/desktop-widgets/tab-widgets/TabDivePhotos.h
@@ -21,12 +21,13 @@ public:
protected:
void contextMenuEvent(QContextMenuEvent *ev) override;
-private:
+private slots:
void addPhotosFromFile();
void addPhotosFromURL();
void removeAllPhotos();
void removeSelectedPhotos();
+private:
Ui::TabDivePhotos *ui;
DivePictureModel *divePictureModel;
};