Skip to content

Commit

Permalink
Update TaskTetParameter.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
FEA-eng authored Mar 6, 2024
1 parent 15b11d5 commit 6cd3ae5
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/Mod/Fem/Gui/TaskTetParameter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand All @@ -60,6 +61,10 @@ TaskTetParameter::TaskTetParameter(Fem::FemMeshShapeNetgenObject* pcObject, QWid
qOverload<double>(&QDoubleSpinBox::valueChanged),
this,
&TaskTetParameter::maxSizeValueChanged);
QObject::connect(ui->doubleSpinBox_MinSize,
qOverload<double>(&QDoubleSpinBox::valueChanged),
this,
&TaskTetParameter::minSizeValueChanged);
QObject::connect(ui->comboBox_Fineness,
qOverload<int>(&QComboBox::activated),
this,
Expand Down Expand Up @@ -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)

Check warning on line 134 in src/Mod/Fem/Gui/TaskTetParameter.cpp

View workflow job for this annotation

GitHub Actions / Lint / Lint

parameter name 's' is too short, expected at least 2 characters [readability-identifier-length]
{
pcObject->SecondOrder.setValue(s != 0);
Expand Down

0 comments on commit 6cd3ae5

Please sign in to comment.