Fix doubling of mirror tool.

This commit is contained in:
Roman Telezhynskyi 2023-09-27 16:06:56 +03:00
parent 13fafca653
commit 2db6805629

View File

@ -3232,18 +3232,6 @@ void MainWindow::ToolBarDrawTools()
ui->toolBarOperationTools->addWidget(symmetryTool); ui->toolBarOperationTools->addWidget(symmetryTool);
} }
{
auto *symmetryToolMenu = new QMenu(this);
symmetryToolMenu->addAction(ui->actionFlippingByAxisTool);
symmetryToolMenu->addAction(ui->actionFlippingByLineTool);
auto *symmetryTool = new VToolButtonPopup(this);
symmetryTool->setMenu(symmetryToolMenu);
symmetryTool->setDefaultAction(ui->actionFlippingByAxisTool);
ui->toolBarOperationTools->addWidget(symmetryTool);
}
{ {
auto *transformToolMenu = new QMenu(this); auto *transformToolMenu = new QMenu(this);
transformToolMenu->addAction(ui->actionRotationTool); transformToolMenu->addAction(ui->actionRotationTool);
@ -3266,9 +3254,6 @@ void MainWindow::ToolBarDrawTools()
ui->toolBarOperationTools->addAction(ui->actionFlippingByAxisTool); ui->toolBarOperationTools->addAction(ui->actionFlippingByAxisTool);
ui->toolBarOperationTools->addAction(ui->actionFlippingByLineTool); ui->toolBarOperationTools->addAction(ui->actionFlippingByLineTool);
ui->toolBarOperationTools->addAction(ui->actionFlippingByAxisTool);
ui->toolBarOperationTools->addAction(ui->actionFlippingByLineTool);
ui->toolBarOperationTools->addAction(ui->actionRotationTool); ui->toolBarOperationTools->addAction(ui->actionRotationTool);
ui->toolBarOperationTools->addAction(ui->actionMoveTool); ui->toolBarOperationTools->addAction(ui->actionMoveTool);