From 373b6bb9790ad0dd87f7c378489c29bf70b8c9c5 Mon Sep 17 00:00:00 2001 From: Harrissou Sant-anna Date: Sat, 19 May 2018 07:31:21 +0200 Subject: [PATCH] [needs-docs] Move the "move features" and "Copy and move features" buttons to the Advanced Digitizing toolbar --- src/app/qgisapp.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/qgisapp.cpp b/src/app/qgisapp.cpp index 78354bde1c9..8cd4b317fa8 100644 --- a/src/app/qgisapp.cpp +++ b/src/app/qgisapp.cpp @@ -2812,7 +2812,7 @@ void QgisApp::createToolBars() mShapeDigitizeToolBar->insertWidget( mActionVertexTool, tbAddRegularPolygon ); // move feature tool button - QToolButton *moveFeatureButton = new QToolButton( mDigitizeToolBar ); + QToolButton *moveFeatureButton = new QToolButton( mAdvancedDigitizeToolBar ); moveFeatureButton->setPopupMode( QToolButton::MenuButtonPopup ); moveFeatureButton->addAction( mActionMoveFeature ); moveFeatureButton->addAction( mActionMoveFeatureCopy ); @@ -2828,7 +2828,7 @@ void QgisApp::createToolBars() }; moveFeatureButton->setDefaultAction( defAction ); connect( moveFeatureButton, &QToolButton::triggered, this, &QgisApp::toolButtonActionTriggered ); - mDigitizeToolBar->insertWidget( mActionVertexTool, moveFeatureButton ); + mAdvancedDigitizeToolBar->insertWidget( mAdvancedDigitizingDockWidget->enableAction(), moveFeatureButton ); bt = new QToolButton(); bt->setPopupMode( QToolButton::MenuButtonPopup );