@@ -389,28 +389,28 @@ void QgsBrowserDockWidget::showContextMenu( QPoint pt )
389
389
if ( item->parent () && !inFavDirs )
390
390
{
391
391
// 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 () ) );
393
393
}
394
394
else if ( inFavDirs )
395
395
{
396
396
// only favorites can be removed
397
- menu->addAction ( tr ( " Remove Favorite" ), this , &QgsBrowserDockWidget:: removeFavorite );
397
+ menu->addAction ( tr ( " Remove Favorite" ), this , SLOT ( removeFavorite () ) );
398
398
}
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 () ) );
402
402
action->setCheckable ( true );
403
403
action->setChecked ( settings.value ( QStringLiteral ( " /qgis/scanItemsFastScanUris" ),
404
404
QStringList () ).toStringList ().contains ( item->path () ) );
405
405
}
406
406
else if ( item->type () == QgsDataItem::Layer )
407
407
{
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 () ) );
410
410
}
411
411
else if ( item->type () == QgsDataItem::Favorites )
412
412
{
413
- menu->addAction ( tr ( " Add a Directory..." ), this , [ this ] { addFavoriteDirectory (); } );
413
+ menu->addAction ( tr ( " Add a Directory..." ), this , SLOT ( addFavoriteDirectory () ) );
414
414
}
415
415
416
416
QList<QAction*> actions = item->actions ();
0 commit comments