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>
This commit is contained in:
parent
058179a305
commit
86a98867f1
@ -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();
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user