@@ -2811,6 +2811,9 @@ void QgisApp::createToolBars()
28112811 connect ( tbAddRegularPolygon, &QToolButton::triggered, this , &QgisApp::toolButtonActionTriggered );
28122812 mShapeDigitizeToolBar ->insertWidget ( mActionVertexTool , tbAddRegularPolygon );
28132813
2814+ // Cad toolbar
2815+ mAdvancedDigitizeToolBar ->insertAction ( mActionRotateFeature , mAdvancedDigitizingDockWidget ->enableAction () );
2816+
28142817 // move feature tool button
28152818 QToolButton *moveFeatureButton = new QToolButton ( mAdvancedDigitizeToolBar );
28162819 moveFeatureButton->setPopupMode ( QToolButton::MenuButtonPopup );
@@ -2828,7 +2831,7 @@ void QgisApp::createToolBars()
28282831 };
28292832 moveFeatureButton->setDefaultAction ( defAction );
28302833 connect ( moveFeatureButton, &QToolButton::triggered, this , &QgisApp::toolButtonActionTriggered );
2831- mAdvancedDigitizeToolBar ->insertWidget ( mAdvancedDigitizingDockWidget -> enableAction () , moveFeatureButton );
2834+ mAdvancedDigitizeToolBar ->insertWidget ( mActionRotateFeature , moveFeatureButton );
28322835
28332836 bt = new QToolButton ();
28342837 bt->setPopupMode ( QToolButton::MenuButtonPopup );
@@ -2850,8 +2853,6 @@ void QgisApp::createToolBars()
28502853 pointSymbolAction->setObjectName ( QStringLiteral ( " ActionPointSymbolTools" ) );
28512854 connect ( bt, &QToolButton::triggered, this , &QgisApp::toolButtonActionTriggered );
28522855
2853- // Cad toolbar
2854- mAdvancedDigitizeToolBar ->insertAction ( mActionRotateFeature , mAdvancedDigitizingDockWidget ->enableAction () );
28552856}
28562857
28572858void QgisApp::createStatusBar ()
0 commit comments