From 6cd3ae57618347919a832b042078446f0d4545f4 Mon Sep 17 00:00:00 2001 From: FEA-eng <59876896+FEA-eng@users.noreply.github.com> Date: Wed, 6 Mar 2024 19:35:27 +0100 Subject: [PATCH] Update TaskTetParameter.cpp --- src/Mod/Fem/Gui/TaskTetParameter.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/Mod/Fem/Gui/TaskTetParameter.cpp b/src/Mod/Fem/Gui/TaskTetParameter.cpp index 52b06a233c4c2..8016febd5f737 100644 --- a/src/Mod/Fem/Gui/TaskTetParameter.cpp +++ b/src/Mod/Fem/Gui/TaskTetParameter.cpp @@ -49,6 +49,7 @@ TaskTetParameter::TaskTetParameter(Fem::FemMeshShapeNetgenObject* pcObject, QWid this->groupLayout()->addWidget(proxy); ui->doubleSpinBox_MaxSize->setValue(pcObject->MaxSize.getValue()); + ui->doubleSpinBox_MinSize->setValue(pcObject->MinSize.getValue()); ui->comboBox_Fineness->setCurrentIndex(pcObject->Fineness.getValue()); ui->checkBox_SecondOrder->setChecked(pcObject->SecondOrder.getValue()); ui->doubleSpinBox_GrowthRate->setValue(pcObject->GrowthRate.getValue()); @@ -60,6 +61,10 @@ TaskTetParameter::TaskTetParameter(Fem::FemMeshShapeNetgenObject* pcObject, QWid qOverload(&QDoubleSpinBox::valueChanged), this, &TaskTetParameter::maxSizeValueChanged); + QObject::connect(ui->doubleSpinBox_MinSize, + qOverload(&QDoubleSpinBox::valueChanged), + this, + &TaskTetParameter::minSizeValueChanged); QObject::connect(ui->comboBox_Fineness, qOverload(&QComboBox::activated), this, @@ -120,6 +125,12 @@ void TaskTetParameter::maxSizeValueChanged(double Value) touched = true; } +void TaskTetParameter::minSizeValueChanged(double Value) +{ + pcObject->MinSize.setValue(Value); + touched = true; +} + void TaskTetParameter::setQuadric(int s) { pcObject->SecondOrder.setValue(s != 0);