Skip to content

Commit 00b0271

Browse files
committed
Remove calls to method added in Qt 5.6
1 parent 6a56cb0 commit 00b0271

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/app/qgsbrowserdockwidget.cpp

+8-8
Original file line numberDiff line numberDiff line change
@@ -389,28 +389,28 @@ void QgsBrowserDockWidget::showContextMenu( QPoint pt )
389389
if ( item->parent() && !inFavDirs )
390390
{
391391
// only non-root directories can be added as favorites
392-
menu->addAction( tr( "Add as a Favorite" ), this, &QgsBrowserDockWidget::addFavorite );
392+
menu->addAction( tr( "Add as a Favorite" ), this, SLOT( addFavorite() ) );
393393
}
394394
else if ( inFavDirs )
395395
{
396396
// only favorites can be removed
397-
menu->addAction( tr( "Remove Favorite" ), this, &QgsBrowserDockWidget::removeFavorite );
397+
menu->addAction( tr( "Remove Favorite" ), this, SLOT( removeFavorite() ) );
398398
}
399-
menu->addAction( tr( "Properties..." ), this, &QgsBrowserDockWidget::showProperties );
400-
menu->addAction( tr( "Hide from Browser" ), this, &QgsBrowserDockWidget::hideItem );
401-
QAction *action = menu->addAction( tr( "Fast Scan this Directory" ), this, &QgsBrowserDockWidget::toggleFastScan );
399+
menu->addAction( tr( "Properties..." ), this, SLOT( showProperties() ) );
400+
menu->addAction( tr( "Hide from Browser" ), this, SLOT( hideItem() ) );
401+
QAction *action = menu->addAction( tr( "Fast Scan this Directory" ), this, SLOT( toggleFastScan() ) );
402402
action->setCheckable( true );
403403
action->setChecked( settings.value( QStringLiteral( "/qgis/scanItemsFastScanUris" ),
404404
QStringList() ).toStringList().contains( item->path() ) );
405405
}
406406
else if ( item->type() == QgsDataItem::Layer )
407407
{
408-
menu->addAction( tr( "Add Selected Layer(s)" ), this, &QgsBrowserDockWidget::addSelectedLayers );
409-
menu->addAction( tr( "Properties..." ), this, &QgsBrowserDockWidget::showProperties );
408+
menu->addAction( tr( "Add Selected Layer(s)" ), this, SLOT( addSelectedLayers() ) );
409+
menu->addAction( tr( "Properties..." ), this, SLOT( showProperties() ) );
410410
}
411411
else if ( item->type() == QgsDataItem::Favorites )
412412
{
413-
menu->addAction( tr( "Add a Directory..." ), this, [this] { addFavoriteDirectory(); } );
413+
menu->addAction( tr( "Add a Directory..." ), this, SLOT( addFavoriteDirectory() ) );
414414
}
415415

416416
QList<QAction*> actions = item->actions();

0 commit comments

Comments
 (0)