Changeset 86a9886 in subsurface


Ignore:
Timestamp:
Apr 12, 2017, 8:24:24 PM (6 weeks ago)
Author:
Dirk Hohndel <dirk@…>
Branches:
master
Children:
5f9ca5f
Parents:
058179a
git-author:
Dirk Hohndel <dirk@…> (04/12/17 20:23:45)
git-committer:
Dirk Hohndel <dirk@…> (04/12/17 20:24:24)
Message:

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@…>

File:
1 edited

Legend:

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

    r1fc4fba r86a9886  
    4343{
    4444        QMenu popup(this);
    45         popup.addAction(tr("Load image(s) from file(s)"), this, &TabDivePhotos::addPhotosFromFile);
    46         popup.addAction(tr("Load image(s) from web"), this, &TabDivePhotos::addPhotosFromURL);
     45        popup.addAction(tr("Load image(s) from file(s)"), this, SLOT(addPhotosFromFile));
     46        popup.addAction(tr("Load image(s) from web"), this, SLOT(addPhotosFromURL));
    4747        popup.addSeparator();
    48         popup.addAction(tr("Delete selected images"), this, &TabDivePhotos::removeSelectedPhotos);
    49         popup.addAction(tr("Delete all images"), this, &TabDivePhotos::removeAllPhotos);
     48        popup.addAction(tr("Delete selected images"), this, SLOT(removeSelectedPhotos));
     49        popup.addAction(tr("Delete all images"), this, SLOT(removeAllPhotos));
    5050        popup.exec(event->globalPos());
    5151        event->accept();
Note: See TracChangeset for help on using the changeset viewer.