Skip to content
Permalink
Browse files

Modernize connections to actions

Use function references rather than SLOTs
  • Loading branch information
m-kuhn committed Jul 20, 2017
1 parent b7a4366 commit cd83c3c6d14b06ae984e1a549bb6c381567f36bb
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/gui/attributetable/qgsdualview.cpp
@@ -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 )

0 comments on commit cd83c3c

Please sign in to comment.
You can’t perform that action at this time.