Skip to content
Permalink
Browse files

Move 'move features' button to correct place in toolbar

  • Loading branch information
nyalldawson committed May 30, 2018
1 parent 3ef7b12 commit de347f0742934645371c2cd30157b85ba04eef83
Showing with 4 additions and 3 deletions.
  1. +4 −3 src/app/qgisapp.cpp
@@ -2811,6 +2811,9 @@ void QgisApp::createToolBars()
connect( tbAddRegularPolygon, &QToolButton::triggered, this, &QgisApp::toolButtonActionTriggered );
mShapeDigitizeToolBar->insertWidget( mActionVertexTool, tbAddRegularPolygon );

// Cad toolbar
mAdvancedDigitizeToolBar->insertAction( mActionRotateFeature, mAdvancedDigitizingDockWidget->enableAction() );

// move feature tool button
QToolButton *moveFeatureButton = new QToolButton( mAdvancedDigitizeToolBar );
moveFeatureButton->setPopupMode( QToolButton::MenuButtonPopup );
@@ -2828,7 +2831,7 @@ void QgisApp::createToolBars()
};
moveFeatureButton->setDefaultAction( defAction );
connect( moveFeatureButton, &QToolButton::triggered, this, &QgisApp::toolButtonActionTriggered );
mAdvancedDigitizeToolBar->insertWidget( mAdvancedDigitizingDockWidget->enableAction(), moveFeatureButton );
mAdvancedDigitizeToolBar->insertWidget( mActionRotateFeature, moveFeatureButton );

bt = new QToolButton();
bt->setPopupMode( QToolButton::MenuButtonPopup );
@@ -2850,8 +2853,6 @@ void QgisApp::createToolBars()
pointSymbolAction->setObjectName( QStringLiteral( "ActionPointSymbolTools" ) );
connect( bt, &QToolButton::triggered, this, &QgisApp::toolButtonActionTriggered );

// Cad toolbar
mAdvancedDigitizeToolBar->insertAction( mActionRotateFeature, mAdvancedDigitizingDockWidget->enableAction() );
}

void QgisApp::createStatusBar()

0 comments on commit de347f0

Please sign in to comment.
You can’t perform that action at this time.