Skip to content

Commit 11eb9cf

Browse files
committedOct 2, 2017
Show actions menu in feature form
Fix #16889
1 parent 471204d commit 11eb9cf

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed
 

‎src/app/qgsattributeactionpropertiesdialog.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ QgsAttributeActionPropertiesDialog::QgsAttributeActionPropertiesDialog( QgsVecto
5858
QSet<QString> defaultActionScopes;
5959
defaultActionScopes << QStringLiteral( "Canvas" )
6060
<< QStringLiteral( "FieldSpecific" )
61-
<< QStringLiteral( "AttributeTableRow" )
61+
<< QStringLiteral( "Feature" )
6262
<< QStringLiteral( "FeatureForm" );
6363

6464
init( defaultActionScopes );

‎src/gui/attributetable/qgsattributetableview.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ QWidget *QgsAttributeTableView::createActionWidget( QgsFeatureId fid )
185185
connect( act, &QAction::triggered, this, &QgsAttributeTableView::actionTriggered );
186186
actionList << act;
187187

188-
if ( mFilterModel->layer()->actions()->defaultAction( QStringLiteral( "AttributeTableRow" ) ).id() == action.id() )
188+
if ( mFilterModel->layer()->actions()->defaultAction( QStringLiteral( "Feature" ) ).id() == action.id() )
189189
defaultAction = act;
190190
}
191191

‎src/gui/attributetable/qgsfeaturelistview.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,7 @@ void QgsFeatureListView::contextMenuEvent( QContextMenuEvent *event )
297297
{
298298
QgsFeature feature = mModel->data( index, QgsFeatureListModel::FeatureRole ).value<QgsFeature>();
299299

300-
QgsActionMenu *menu = new QgsActionMenu( mModel->layerCache()->layer(), feature, QStringLiteral( "AttributeTableRow" ), this );
300+
QgsActionMenu *menu = new QgsActionMenu( mModel->layerCache()->layer(), feature, QStringLiteral( "Feature" ), this );
301301
menu->exec( event->globalPos() );
302302
}
303303
}

‎src/gui/qgsattributedialog.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ void QgsAttributeDialog::init( QgsVectorLayer *layer, QgsFeature *feature, const
102102
connect( buttonBox, &QDialogButtonBox::accepted, this, &QgsAttributeDialog::accept );
103103
connect( layer, &QObject::destroyed, this, &QWidget::close );
104104

105-
QgsActionMenu *menu = new QgsActionMenu( layer, mAttributeForm->feature(), QStringLiteral( "AttributeTableRow" ), this );
105+
QgsActionMenu *menu = new QgsActionMenu( layer, mAttributeForm->feature(), QStringLiteral( "Feature" ), this );
106106
if ( !menu->actions().isEmpty() )
107107
{
108108
QMenuBar *menuBar = new QMenuBar( this );

‎src/gui/qgsidentifymenu.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ void QgsIdentifyMenu::addVectorLayer( QgsVectorLayer *layer, const QList<QgsMapT
259259
createMenu = !mCustomActionRegistry.mapLayerActions( layer, QgsMapLayerAction::SingleFeature ).isEmpty();
260260
if ( !createMenu && mShowFeatureActions )
261261
{
262-
QgsActionMenu *featureActionMenu = new QgsActionMenu( layer, results[0].mFeature, QStringLiteral( "AttributeTableRow" ), this );
262+
QgsActionMenu *featureActionMenu = new QgsActionMenu( layer, results[0].mFeature, QStringLiteral( "Feature" ), this );
263263
createMenu = !featureActionMenu->actions().isEmpty();
264264
delete featureActionMenu;
265265
}
@@ -344,7 +344,7 @@ void QgsIdentifyMenu::addVectorLayer( QgsVectorLayer *layer, const QList<QgsMapT
344344
QList<QgsMapLayerAction *> customFeatureActions = mCustomActionRegistry.mapLayerActions( layer, QgsMapLayerAction::SingleFeature );
345345
if ( mShowFeatureActions )
346346
{
347-
featureActionMenu = new QgsActionMenu( layer, result.mFeature, QStringLiteral( "AttributeTableRow" ), layerMenu );
347+
featureActionMenu = new QgsActionMenu( layer, result.mFeature, QStringLiteral( "Feature" ), layerMenu );
348348
}
349349

350350
// feature title

0 commit comments

Comments
 (0)
Please sign in to comment.