Changeset 1b8b112 in subsurface


Ignore:
Timestamp:
Jul 12, 2017, 8:25:58 AM (4 months ago)
Author:
Dirk Hohndel <dirk@…>
Branches:
master
Children:
a0c6ceeb
Parents:
b7b2e81
git-author:
Dirk Hohndel <dirk@…> (07/12/17 08:25:40)
git-committer:
Dirk Hohndel <dirk@…> (07/12/17 08:25:58)
Message:

Fix slot handling in Photos tab

This clearly has never been tested, never worked.
Oh well.

Fixes #478

Signed-off-by: Dirk Hohndel <dirk@…>

Location:
desktop-widgets/tab-widgets
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • desktop-widgets/tab-widgets/TabDivePhotos.cpp

    r9021a44 r1b8b112  
    4444{
    4545        QMenu popup(this);
    46         popup.addAction(tr("Load image(s) from file(s)"), this, SLOT(addPhotosFromFile));
    47         popup.addAction(tr("Load image(s) from web"), this, SLOT(addPhotosFromURL));
     46        popup.addAction(tr("Load image(s) from file(s)"), this, SLOT(addPhotosFromFile()));
     47        popup.addAction(tr("Load image(s) from web"), this, SLOT(addPhotosFromURL()));
    4848        popup.addSeparator();
    49         popup.addAction(tr("Delete selected images"), this, SLOT(removeSelectedPhotos));
    50         popup.addAction(tr("Delete all images"), this, SLOT(removeAllPhotos));
     49        popup.addAction(tr("Delete selected images"), this, SLOT(removeSelectedPhotos()));
     50        popup.addAction(tr("Delete all images"), this, SLOT(removeAllPhotos()));
    5151        popup.exec(event->globalPos());
    5252        event->accept();
  • desktop-widgets/tab-widgets/TabDivePhotos.h

    r9021a44 r1b8b112  
    2222        void contextMenuEvent(QContextMenuEvent *ev) override;
    2323
    24 private:
     24private slots:
    2525        void addPhotosFromFile();
    2626        void addPhotosFromURL();
     
    2828        void removeSelectedPhotos();
    2929
     30private:
    3031        Ui::TabDivePhotos *ui;
    3132        DivePictureModel *divePictureModel;
Note: See TracChangeset for help on using the changeset viewer.