diff --git a/src/Mod/PartDesign/Gui/TaskPadParameters.cpp b/src/Mod/PartDesign/Gui/TaskPadParameters.cpp index 3ec5d37bf9..941b600781 100644 --- a/src/Mod/PartDesign/Gui/TaskPadParameters.cpp +++ b/src/Mod/PartDesign/Gui/TaskPadParameters.cpp @@ -107,7 +107,8 @@ TaskPadParameters::TaskPadParameters(ViewProviderPad *PadView, QWidget *parent, ui->lengthEdit->setValue(l); ui->lengthEdit2->setValue(l2); // the direction combobox is filled later in updateUI() - ui->groupBoxDirection->setChecked(useCustom); + ui->checkBoxDirection->setChecked(useCustom); + onDirectionToggled(useCustom); ui->checkBoxAlongDirection->setChecked(alongNormal); // dis/enable length and direction ui->directionCB->setEnabled(!useCustom); @@ -471,10 +472,13 @@ void TaskPadParameters::onDirectionToggled(bool on) { PartDesign::Pad* pcPad = static_cast(vp->getObject()); pcPad->UseCustomVector.setValue(on); - // dis/enable length and direction - ui->directionCB->setEnabled(!on); - if (on) - ui->checkBoxAlongDirection->setEnabled(on); + // dis/enable length direction + ui->checkBoxAlongDirection->setEnabled(on); + if (on) { + ui->groupBoxDirection->show(); + } + else { + ui->checkBoxAlongDirection->setChecked(!on); ui->groupBoxDirection->hide(); } recomputeFeature(); diff --git a/src/Mod/PartDesign/Gui/TaskPadParameters.ui b/src/Mod/PartDesign/Gui/TaskPadParameters.ui index d162b248e0..dbc9c341a6 100644 --- a/src/Mod/PartDesign/Gui/TaskPadParameters.ui +++ b/src/Mod/PartDesign/Gui/TaskPadParameters.ui @@ -7,7 +7,7 @@ 0 0 300 - 405 + 436 @@ -40,11 +40,11 @@ - - + + false - + 0.000000000000000 @@ -87,6 +87,13 @@ or select an edge as reference + + + Use custom direction + + + + true @@ -95,11 +102,8 @@ or select an edge as reference Use custom vector for pad direction, otherwise the sketch plane's normal vector will be used - - Custom direction - - true + false false @@ -198,7 +202,7 @@ the sketch plane's normal vector will be used - + true @@ -225,11 +229,11 @@ measured along the specified direction - + Offset from face in which pad will end - + false @@ -269,8 +273,8 @@ measured along the specified direction - - + + false @@ -278,15 +282,15 @@ measured along the specified direction - - + + Face - +