Skip to content

Commit

Permalink
Modernize connections to actions
Browse files Browse the repository at this point in the history
Use function references rather than SLOTs
  • Loading branch information
m-kuhn committed Jul 28, 2017
1 parent b7a4366 commit cd83c3c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/gui/attributetable/qgsdualview.cpp
Expand Up @@ -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 )
Expand Down

0 comments on commit cd83c3c

Please sign in to comment.