Move Tool options and Group menu to Window section.

--HG--
branch : develop
This commit is contained in:
Roman Telezhynskyi 2019-05-27 18:45:09 +03:00
parent c2091c6337
commit deddd8a1ec
2 changed files with 5 additions and 6 deletions

View File

@ -18,6 +18,7 @@
- Two new passmark types: U and Box. - Two new passmark types: U and Box.
- [#969] Fix length to label after soom. - [#969] Fix length to label after soom.
- [#725] Improve labels on drawing. - [#725] Improve labels on drawing.
- Move Tool options and Group menu to Window section.
# Version 0.6.2 (unreleased) # Version 0.6.2 (unreleased)
- [#903] Bug in tool Cut Spline path. - [#903] Bug in tool Cut Spline path.

View File

@ -4260,24 +4260,22 @@ QT_WARNING_POP
//--------------------------------------------------------------------------------------------------------------------- //---------------------------------------------------------------------------------------------------------------------
void MainWindow::AddDocks() void MainWindow::AddDocks()
{ {
ui->menuWindow->addSeparator();
//Add dock //Add dock
actionDockWidgetToolOptions = ui->dockWidgetToolOptions->toggleViewAction(); actionDockWidgetToolOptions = ui->dockWidgetToolOptions->toggleViewAction();
ui->menuPatternPiece->insertAction(ui->actionPattern_properties, actionDockWidgetToolOptions); ui->menuWindow->addAction(actionDockWidgetToolOptions);
connect(ui->dockWidgetToolOptions, &QDockWidget::visibilityChanged, this, [this](bool visible) connect(ui->dockWidgetToolOptions, &QDockWidget::visibilityChanged, this, [this](bool visible)
{ {
isDockToolOptionsVisible = visible; isDockToolOptionsVisible = visible;
}); });
actionDockWidgetGroups = ui->dockWidgetGroups->toggleViewAction(); actionDockWidgetGroups = ui->dockWidgetGroups->toggleViewAction();
ui->menuPatternPiece->insertAction(ui->actionPattern_properties, actionDockWidgetGroups); ui->menuWindow->addAction(actionDockWidgetGroups);
connect(ui->dockWidgetGroups, &QDockWidget::visibilityChanged, this, [this](bool visible) connect(ui->dockWidgetGroups, &QDockWidget::visibilityChanged, this, [this](bool visible)
{ {
isDockGroupsVisible = visible; isDockGroupsVisible = visible;
}); });
separatorAct = new QAction(this);
separatorAct->setSeparator(true);
ui->menuPatternPiece->insertAction(ui->actionPattern_properties, separatorAct);
} }
//--------------------------------------------------------------------------------------------------------------------- //---------------------------------------------------------------------------------------------------------------------