From 7b0296ca7cd0e05e1ef8b57038e5fc0ef57f8e66 Mon Sep 17 00:00:00 2001 From: Alfredo Monclus Date: Mon, 13 Jan 2025 14:37:06 -0300 Subject: [PATCH] feat(PD): hole taskpanel ui hide thread group if not threaded hide threadFit if threaded --- src/Mod/PartDesign/Gui/TaskHoleParameters.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Mod/PartDesign/Gui/TaskHoleParameters.cpp b/src/Mod/PartDesign/Gui/TaskHoleParameters.cpp index ad9f2a1e60..36b811f579 100644 --- a/src/Mod/PartDesign/Gui/TaskHoleParameters.cpp +++ b/src/Mod/PartDesign/Gui/TaskHoleParameters.cpp @@ -158,6 +158,8 @@ TaskHoleParameters::TaskHoleParameters(ViewProviderHole* HoleView, QWidget* pare bool isThreaded = ui->Threaded->isChecked(); bool isModeled = pcHole->ModelThread.getValue(); + ui->ThreadGroupBox->setVisible(isThreaded); + ui->ClearanceWidget->setHidden(isThreaded); ui->ModelThread->setChecked(isModeled); ui->UseCustomThreadClearance->setChecked(pcHole->UseCustomThreadClearance.getValue()); ui->CustomThreadClearance->setValue(pcHole->CustomThreadClearance.getValue()); @@ -264,6 +266,8 @@ void TaskHoleParameters::threadedChanged() bool isChecked = ui->Threaded->isChecked(); pcHole->Threaded.setValue(isChecked); + ui->ThreadGroupBox->setVisible(isChecked); + ui->ClearanceWidget->setHidden(isChecked); // run modelThreadChanged // it will handle the visibility of the model options modelThreadChanged();