From 30c42a1e98551a7fded5df90806608cb0b58126b Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Sun, 30 Jun 2024 18:23:32 +0300 Subject: [PATCH] Dialog Table of variables. Added button Close as the second method of closing the dialog. --- ChangeLog.txt | 1 + .../valentina/dialogs/dialogincrements.cpp | 4 + src/app/valentina/dialogs/dialogincrements.ui | 80 +++++++++---------- 3 files changed, 45 insertions(+), 40 deletions(-) diff --git a/ChangeLog.txt b/ChangeLog.txt index d5c3a8b46..3c67440e8 100644 --- a/ChangeLog.txt +++ b/ChangeLog.txt @@ -1,5 +1,6 @@ # Valentina 0.7.54 (unreleased) - Fix Puzzle app crash when application closing. +- Dialog Table of variables. Added button Close. # Valentina 0.7.53 June 25, 2024 - Fix layout sheet export with empty name. diff --git a/src/app/valentina/dialogs/dialogincrements.cpp b/src/app/valentina/dialogs/dialogincrements.cpp index a60f3fddb..832dd48e3 100644 --- a/src/app/valentina/dialogs/dialogincrements.cpp +++ b/src/app/valentina/dialogs/dialogincrements.cpp @@ -204,6 +204,10 @@ DialogIncrements::DialogIncrements(VContainer *data, VPattern *doc, QWidget *par connect(manager, &VAbstractShortcutManager::ShortcutsUpdated, this, &DialogIncrements::UpdateShortcuts); UpdateShortcuts(); } + + QPushButton *bClose = ui->buttonBox->button(QDialogButtonBox::Close); + SCASSERT(bClose != nullptr) + connect(bClose, &QPushButton::clicked, this, &DialogIncrements::accept); } //--------------------------------------------------------------------------------------------------------------------- diff --git a/src/app/valentina/dialogs/dialogincrements.ui b/src/app/valentina/dialogs/dialogincrements.ui index 27de14d03..5817799d3 100644 --- a/src/app/valentina/dialogs/dialogincrements.ui +++ b/src/app/valentina/dialogs/dialogincrements.ui @@ -66,8 +66,7 @@ - - .. + Alt+Down @@ -249,11 +248,10 @@ <html><head/><body><p>Find Previous <span style=" color:#888a85;">%1</span></p></body></html> - + - - .. + Shift+F3 @@ -269,11 +267,10 @@ <html><head/><body><p>Find Next %1</p></body></html> - + - - .. + F3 @@ -392,7 +389,7 @@ Move measurement up - + @@ -409,7 +406,7 @@ Move measurement down - + @@ -459,11 +456,10 @@ - + - - .. + QToolButton::MenuButtonPopup @@ -476,11 +472,10 @@ false - + - - .. + @@ -611,7 +606,7 @@ Formula wizard - + @@ -655,6 +650,19 @@ + + + + Refresh a pattern with all changes you made + + + Refresh + + + + + + @@ -669,12 +677,9 @@ - - - Refresh a pattern with all changes you made - - - Refresh + + + QDialogButtonBox::Close @@ -721,8 +726,7 @@ - - .. + Alt+Down @@ -904,11 +908,10 @@ <html><head/><body><p>Find Previous <span style=" color:#888a85;">%1</span></p></body></html> - + - - .. + Shift+F3 @@ -924,11 +927,10 @@ <html><head/><body><p>Find Next %1</p></body></html> - + - - .. + F3 @@ -1047,7 +1049,7 @@ Move measurement up - + @@ -1064,7 +1066,7 @@ Move measurement down - + @@ -1114,11 +1116,10 @@ - + - - .. + QToolButton::MenuButtonPopup @@ -1131,11 +1132,10 @@ false - + - - .. + @@ -1259,7 +1259,7 @@ Formula wizard - +