From 0bb47bc0d8df12b58c36de9fe23e7bff5c6d172b Mon Sep 17 00:00:00 2001 From: PaddleStroke Date: Mon, 3 Mar 2025 11:36:13 +0100 Subject: [PATCH 1/2] Move getStandardButtons to cpp file --- src/Mod/Sketcher/Gui/TaskDlgEditSketch.cpp | 4 ++++ src/Mod/Sketcher/Gui/TaskDlgEditSketch.h | 5 +---- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/Mod/Sketcher/Gui/TaskDlgEditSketch.cpp b/src/Mod/Sketcher/Gui/TaskDlgEditSketch.cpp index a3b15f0efc..f01b221b1a 100644 --- a/src/Mod/Sketcher/Gui/TaskDlgEditSketch.cpp +++ b/src/Mod/Sketcher/Gui/TaskDlgEditSketch.cpp @@ -146,6 +146,10 @@ bool TaskDlgEditSketch::reject() return true; } +QDialogButtonBox::StandardButtons TaskDlgEditSketch::getStandardButtons() const +{ + return QDialogButtonBox::Close; +} void TaskDlgEditSketch::autoClosedOnClosedView() { diff --git a/src/Mod/Sketcher/Gui/TaskDlgEditSketch.h b/src/Mod/Sketcher/Gui/TaskDlgEditSketch.h index 115a60dd7a..ef008d465b 100644 --- a/src/Mod/Sketcher/Gui/TaskDlgEditSketch.h +++ b/src/Mod/Sketcher/Gui/TaskDlgEditSketch.h @@ -70,10 +70,7 @@ public: void autoClosedOnClosedView() override; /// returns for Close and Help button - QDialogButtonBox::StandardButtons getStandardButtons() const override - { - return QDialogButtonBox::Close; - } + QDialogButtonBox::StandardButtons getStandardButtons() const override; /** @brief Function used to register a slot to be triggered when the tool widget is changed. */ template From 2db9ae7bdf390680d7580e31ac8440d2eccbcf98 Mon Sep 17 00:00:00 2001 From: Benjamin Nauck Date: Tue, 11 Mar 2025 10:17:12 +0100 Subject: [PATCH 2/2] Remove outdated comment --- src/Mod/Sketcher/Gui/TaskDlgEditSketch.h | 1 - 1 file changed, 1 deletion(-) diff --git a/src/Mod/Sketcher/Gui/TaskDlgEditSketch.h b/src/Mod/Sketcher/Gui/TaskDlgEditSketch.h index ef008d465b..de71106451 100644 --- a/src/Mod/Sketcher/Gui/TaskDlgEditSketch.h +++ b/src/Mod/Sketcher/Gui/TaskDlgEditSketch.h @@ -69,7 +69,6 @@ public: } void autoClosedOnClosedView() override; - /// returns for Close and Help button QDialogButtonBox::StandardButtons getStandardButtons() const override; /** @brief Function used to register a slot to be triggered when the tool widget is changed. */