mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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
1 changed files with 4 additions and 4 deletions
|
@ -42,11 +42,11 @@ void TabDivePhotos::clear()
|
||||||
void TabDivePhotos::contextMenuEvent(QContextMenuEvent *event)
|
void TabDivePhotos::contextMenuEvent(QContextMenuEvent *event)
|
||||||
{
|
{
|
||||||
QMenu popup(this);
|
QMenu popup(this);
|
||||||
popup.addAction(tr("Load image(s) from file(s)"), this, &TabDivePhotos::addPhotosFromFile);
|
popup.addAction(tr("Load image(s) from file(s)"), this, SLOT(addPhotosFromFile));
|
||||||
popup.addAction(tr("Load image(s) from web"), this, &TabDivePhotos::addPhotosFromURL);
|
popup.addAction(tr("Load image(s) from web"), this, SLOT(addPhotosFromURL));
|
||||||
popup.addSeparator();
|
popup.addSeparator();
|
||||||
popup.addAction(tr("Delete selected images"), this, &TabDivePhotos::removeSelectedPhotos);
|
popup.addAction(tr("Delete selected images"), this, SLOT(removeSelectedPhotos));
|
||||||
popup.addAction(tr("Delete all images"), this, &TabDivePhotos::removeAllPhotos);
|
popup.addAction(tr("Delete all images"), this, SLOT(removeAllPhotos));
|
||||||
popup.exec(event->globalPos());
|
popup.exec(event->globalPos());
|
||||||
event->accept();
|
event->accept();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue