Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
independent interface customization for Vertex Tool Current and All L…
…ayers
  • Loading branch information
MorriganR authored and nyalldawson committed Jun 21, 2021
1 parent 2430173 commit c1f5813
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/app/qgisapp.cpp
Expand Up @@ -3694,7 +3694,7 @@ void QgisApp::createToolBars()
connect( moveFeatureButton, &QToolButton::triggered, this, &QgisApp::toolButtonActionTriggered );

// vertex tool button
QToolButton *vertexToolButton = qobject_cast<QToolButton *>( mDigitizeToolBar->widgetForAction( mActionVertexTool ) );
QToolButton *vertexToolButton = new QToolButton( mDigitizeToolBar );
vertexToolButton->setPopupMode( QToolButton::MenuButtonPopup );
vertexToolButton->addAction( mActionVertexTool );
vertexToolButton->addAction( mActionVertexToolActiveLayer );
Expand All @@ -3709,6 +3709,8 @@ void QgisApp::createToolBars()
break;
}
vertexToolButton->setDefaultAction( defActionVertexTool );
QAction *ActionVertexTool = mDigitizeToolBar->insertWidget( mActionMultiEditAttributes, vertexToolButton );
ActionVertexTool->setObjectName( QStringLiteral( "ActionVertexTool" ) );
connect( vertexToolButton, &QToolButton::triggered, this, &QgisApp::toolButtonActionTriggered );

bt = new QToolButton();
Expand Down
1 change: 0 additions & 1 deletion src/ui/qgisapp.ui
Expand Up @@ -507,7 +507,6 @@
<addaction name="mActionToggleEditing"/>
<addaction name="mActionSaveLayerEdits"/>
<addaction name="mActionAddFeature"/>
<addaction name="mActionVertexTool"/>
<addaction name="mActionMultiEditAttributes"/>
<addaction name="mActionDeleteSelected"/>
<addaction name="mActionCutFeatures"/>
Expand Down

0 comments on commit c1f5813

Please sign in to comment.