From c5f87d8ea8044c6a561d14d612034931fd497100 Mon Sep 17 00:00:00 2001 From: Uwe Date: Wed, 22 Dec 2021 02:46:07 +0100 Subject: [PATCH] [PD] hole dialog improvements - no keyboard tracking - don't disable labels since we don't do this for the other dialog labels - avoid a doubled word in subsequent labels - further UI file changes are by Qt's Designer --- src/Mod/PartDesign/Gui/TaskHoleParameters.cpp | 4 +- src/Mod/PartDesign/Gui/TaskHoleParameters.ui | 109 +++++------------- 2 files changed, 31 insertions(+), 82 deletions(-) diff --git a/src/Mod/PartDesign/Gui/TaskHoleParameters.cpp b/src/Mod/PartDesign/Gui/TaskHoleParameters.cpp index 4dd00184f3..9add76d640 100644 --- a/src/Mod/PartDesign/Gui/TaskHoleParameters.cpp +++ b/src/Mod/PartDesign/Gui/TaskHoleParameters.cpp @@ -175,8 +175,8 @@ TaskHoleParameters::TaskHoleParameters(ViewProviderHole *HoleView, QWidget *pare // conditional enabling of thread modeling options ui->ModelThread->setEnabled(ui->Threaded->isChecked() && ui->ThreadType->currentIndex() != 0); ui->UseCustomThreadClearance->setEnabled(ui->Threaded->isChecked() && ui->ModelThread->isChecked()); - ui->labelThreadClearance->setEnabled(ui->Threaded->isChecked() && ui->ModelThread->isChecked() && ui->UseCustomThreadClearance->isChecked()); - ui->CustomThreadClearance->setEnabled(ui->Threaded->isChecked() && ui->ModelThread->isChecked() && ui->UseCustomThreadClearance->isChecked()); + ui->CustomThreadClearance->setEnabled(ui->Threaded->isChecked() && ui->ModelThread->isChecked() + && ui->UseCustomThreadClearance->isChecked()); ui->UpdateView->setChecked(false); ui->UpdateView->setEnabled(ui->ModelThread->isChecked()); diff --git a/src/Mod/PartDesign/Gui/TaskHoleParameters.ui b/src/Mod/PartDesign/Gui/TaskHoleParameters.ui index 3de7dec4b4..8bb6f26f34 100644 --- a/src/Mod/PartDesign/Gui/TaskHoleParameters.ui +++ b/src/Mod/PartDesign/Gui/TaskHoleParameters.ui @@ -6,8 +6,8 @@ 0 0 - 342 - 486 + 355 + 561 @@ -48,12 +48,6 @@ 0 - - - 16777215 - 16777215 - - @@ -114,7 +108,7 @@ Note that the calculation can take some time Customize thread clearance - Custom Thread Clearance + Custom Thread @@ -139,24 +133,18 @@ Note that the calculation can take some time 0 - - - 16777215 - 16777215 - - Custom Thread clearance value + + false + mm 0.100000000000000 - - false - @@ -231,12 +219,6 @@ Note that the calculation can take some time 0 - - - 16777215 - 16777215 - - @@ -260,12 +242,6 @@ Note that the calculation can take some time 0 - - - 16777215 - 16777215 - - Hole clearance Only available for holes without thread @@ -308,12 +284,6 @@ Only available for holes without thread 0 - - - 16777215 - 16777215 - - Tolerance class for threaded holes according to hole profile @@ -340,15 +310,12 @@ Only available for holes without thread 0 - - - 16777215 - 16777215 - - Hole diameter + + false + mm @@ -378,12 +345,6 @@ Only available for holes without thread 0 - - - 16777215 - 16777215 - - Dimension @@ -404,6 +365,9 @@ Only available for holes without thread 0 + + false + mm @@ -430,12 +394,6 @@ Only available for holes without thread 0 - - - 16777215 - 16777215 - - Hole depth @@ -461,12 +419,12 @@ Only available for holes without thread 0 - - mm - false + + mm + @@ -497,12 +455,6 @@ Only available for holes without thread 0 - - - 16777215 - 16777215 - - Cut type for screw heads @@ -545,15 +497,12 @@ Only available for holes without thread 0 - - - 16777215 - 16777215 - - Qt::NoContextMenu + + false + mm @@ -586,11 +535,8 @@ Only available for holes without thread 0 - - - 16777215 - 16777215 - + + false mm @@ -624,11 +570,8 @@ Only available for holes without thread 0 - - - 16777215 - 16777215 - + + false deg @@ -710,6 +653,9 @@ Only available for holes without thread 0 + + false + deg @@ -769,6 +715,9 @@ account for the depth of blind holes under 90: smaller hole radius at the bottom over 90: larger hole radius at the bottom + + false + deg @@ -883,7 +832,7 @@ over 90: larger hole radius at the bottom - +