From 0b56ca464f5c4d0b393e943d0544381eb9c3ce47 Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Mon, 16 Jan 2023 17:00:03 +0200 Subject: [PATCH] Shortcut to quickly enable/disable Interactive tools mode. (cherry picked from commit 80ba9e9961fb0f43d748a8fa1d6946816937da06) --- ChangeLog.txt | 1 + src/app/valentina/mainwindow.cpp | 6 ++++++ src/app/valentina/mainwindow.ui | 15 +++++++++++++++ 3 files changed, 22 insertions(+) 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 c69048d45..f6a22803d 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 1ed08050e..f77105ccd 100644 --- a/src/app/valentina/mainwindow.ui +++ b/src/app/valentina/mainwindow.ui @@ -1776,6 +1776,7 @@ + @@ -3194,6 +3195,20 @@ Show accuracy radius + + + true + + + true + + + Interactive tools + + + Ctrl+D + +