From 2137cd816d52a6ec84b85d277b3b2f38fb6d00a2 Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Tue, 15 Aug 2017 16:01:07 +0300 Subject: [PATCH] Added menu option to call the Template editor independently. --HG-- branch : feature --- src/app/valentina/mainwindow.cpp | 7 +++++++ src/app/valentina/mainwindow.ui | 27 +++++++++++++++++---------- 2 files changed, 24 insertions(+), 10 deletions(-) diff --git a/src/app/valentina/mainwindow.cpp b/src/app/valentina/mainwindow.cpp index dd9c16689..9bb2e5575 100644 --- a/src/app/valentina/mainwindow.cpp +++ b/src/app/valentina/mainwindow.cpp @@ -63,6 +63,7 @@ #include "dialogs/vwidgetdetails.h" #include "../vpatterndb/vpiecepath.h" #include "../qmuparser/qmuparsererror.h" +#include "../vtools/dialogs/support/dialogeditlabel.h" #include #include @@ -4051,6 +4052,12 @@ void MainWindow::CreateActions() connect(ui->actionSyncMeasurements, &QAction::triggered, this, &MainWindow::SyncMeasurements); connect(ui->actionUnloadMeasurements, &QAction::triggered, this, &MainWindow::UnloadMeasurements); + + connect(ui->actionLabelTemplateEditor, &QAction::triggered, this, [this]() + { + DialogEditLabel editor(doc); + editor.exec(); + }); } //--------------------------------------------------------------------------------------------------------------------- diff --git a/src/app/valentina/mainwindow.ui b/src/app/valentina/mainwindow.ui index 10c90405b..38422502b 100644 --- a/src/app/valentina/mainwindow.ui +++ b/src/app/valentina/mainwindow.ui @@ -55,8 +55,8 @@ 0 0 - 126 - 351 + 127 + 358 @@ -402,7 +402,7 @@ 0 0 140 - 108 + 110 @@ -511,7 +511,7 @@ 0 0 140 - 243 + 248 @@ -773,7 +773,7 @@ 0 0 140 - 243 + 248 @@ -1038,7 +1038,7 @@ 0 0 140 - 102 + 104 @@ -1121,7 +1121,7 @@ 0 0 140 - 326 + 328 @@ -1325,7 +1325,7 @@ 0 0 140 - 192 + 196 @@ -1535,7 +1535,7 @@ 0 0 140 - 326 + 328 @@ -1635,7 +1635,7 @@ 0 0 1100 - 19 + 25 @@ -1664,6 +1664,8 @@ + + @@ -2668,6 +2670,11 @@ QAction::NoRole + + + Label template editor + +