mirror of
https://github.com/qgis/QGIS.git
synced 2025-03-01 00:46:20 -05:00
Modernize connections to actions
Use function references rather than SLOTs
This commit is contained in:
parent
b7a4366c40
commit
cd83c3c6d1
@ -489,13 +489,13 @@ void QgsDualView::viewWillShowContextMenu( QMenu *menu, const QModelIndex &atInd
|
||||
for ( actionIt = registeredActions.begin(); actionIt != registeredActions.end(); ++actionIt )
|
||||
{
|
||||
QgsAttributeTableMapLayerAction *a = new QgsAttributeTableMapLayerAction( ( *actionIt )->text(), this, ( *actionIt ), sourceIndex );
|
||||
menu->addAction( ( *actionIt )->text(), a, SLOT( execute() ) );
|
||||
menu->addAction( ( *actionIt )->text(), a, &QgsAttributeTableMapLayerAction::execute );
|
||||
}
|
||||
}
|
||||
|
||||
menu->addSeparator();
|
||||
QgsAttributeTableAction *a = new QgsAttributeTableAction( tr( "Open form" ), this, QString(), sourceIndex );
|
||||
menu->addAction( tr( "Open form" ), a, SLOT( featureForm() ) );
|
||||
menu->addAction( tr( "Open form" ), a, &QgsAttributeTableAction::featureForm );
|
||||
}
|
||||
|
||||
void QgsDualView::showViewHeaderMenu( QPoint point )
|
||||
|
Loading…
x
Reference in New Issue
Block a user