diff --git a/ChangeLog.txt b/ChangeLog.txt index 53ae48424..0062025e0 100644 --- a/ChangeLog.txt +++ b/ChangeLog.txt @@ -13,6 +13,7 @@ - Improve error messages while import CSV data. - [smart-pattern/valentina#189] Fix regression in dialog Known measurements. - New option. Default piece label template for new pieces. +- Shortcut to quickly enable/disable Interactive tools mode. # Valentina 0.7.52 September 12, 2022 - Fix crash when default locale is ru. diff --git a/src/app/valentina/mainwindow.cpp b/src/app/valentina/mainwindow.cpp index 010b3c11a..4eb4412b9 100644 --- a/src/app/valentina/mainwindow.cpp +++ b/src/app/valentina/mainwindow.cpp @@ -5632,6 +5632,12 @@ void MainWindow::CreateActions() connect(ui->actionLast_tool, &QAction::triggered, this, &MainWindow::LastUsedTool); + ui->actionInteractiveTools->setChecked(VAbstractValApplication::VApp()->ValentinaSettings()->IsInteractiveTools()); + connect(ui->actionInteractiveTools, &QAction::triggered, this, [this](bool checked) + { + VAbstractValApplication::VApp()->ValentinaSettings()->SetInteractiveTools(checked); + }); + connect(ui->actionPattern_properties, &QAction::triggered, this, [this]() { DialogPatternProperties proper(doc, pattern, this); diff --git a/src/app/valentina/mainwindow.ui b/src/app/valentina/mainwindow.ui index 6570eccd3..5d3d507bb 100644 --- a/src/app/valentina/mainwindow.ui +++ b/src/app/valentina/mainwindow.ui @@ -1776,6 +1776,7 @@ + @@ -3194,13 +3195,27 @@ Show accuracy radius + + + true + + + true + + + Interactive tools + + + Ctrl+D + + - VMainGraphicsView - QGraphicsView -
vmaingraphicsview.h
+ VPlainTextEdit + QPlainTextEdit +
vplaintextedit.h
VLineEdit @@ -3208,9 +3223,9 @@
vlineedit.h
- VPlainTextEdit - QPlainTextEdit -
vplaintextedit.h
+ VMainGraphicsView + QGraphicsView +
vmaingraphicsview.h