Skip to content

Commit cd83c3c

Browse files
committedJul 28, 2017
Modernize connections to actions
Use function references rather than SLOTs
1 parent b7a4366 commit cd83c3c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎src/gui/attributetable/qgsdualview.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -489,13 +489,13 @@ void QgsDualView::viewWillShowContextMenu( QMenu *menu, const QModelIndex &atInd
489489
for ( actionIt = registeredActions.begin(); actionIt != registeredActions.end(); ++actionIt )
490490
{
491491
QgsAttributeTableMapLayerAction *a = new QgsAttributeTableMapLayerAction( ( *actionIt )->text(), this, ( *actionIt ), sourceIndex );
492-
menu->addAction( ( *actionIt )->text(), a, SLOT( execute() ) );
492+
menu->addAction( ( *actionIt )->text(), a, &QgsAttributeTableMapLayerAction::execute );
493493
}
494494
}
495495

496496
menu->addSeparator();
497497
QgsAttributeTableAction *a = new QgsAttributeTableAction( tr( "Open form" ), this, QString(), sourceIndex );
498-
menu->addAction( tr( "Open form" ), a, SLOT( featureForm() ) );
498+
menu->addAction( tr( "Open form" ), a, &QgsAttributeTableAction::featureForm );
499499
}
500500

501501
void QgsDualView::showViewHeaderMenu( QPoint point )

0 commit comments

Comments
 (0)
Please sign in to comment.