[needs-docs] Move the "move features" and "Copy and move features"

buttons to the Advanced Digitizing toolbar
This commit is contained in:
Harrissou Sant-anna 2018-05-19 07:31:21 +02:00 committed by Nyall Dawson
parent c16e279851
commit 373b6bb979

View File

@ -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 );