FEM: move to new style connect()

This commit is contained in:
wmayer
2023-01-15 22:23:53 +01:00
parent a9b9899846
commit 32bbdb0ab2
5 changed files with 14 additions and 12 deletions

View File

@@ -101,10 +101,10 @@ TaskFemConstraintBearing::TaskFemConstraintBearing(ViewProviderFemConstraint *Co
connect(ui->spinDistance, qOverload<double>(&QDoubleSpinBox::valueChanged),
this, &TaskFemConstraintBearing::onDistanceChanged);
connect(ui->buttonReference, SIGNAL(pressed()),
this, SLOT(onButtonReference()));
connect(ui->buttonLocation, SIGNAL(pressed()),
this, SLOT(onButtonLocation()));
connect(ui->buttonReference, &QPushButton::pressed,
this, [=]{onButtonReference(true);});
connect(ui->buttonLocation, &QPushButton::pressed,
this, [=]{onButtonLocation(true);});
connect(ui->checkAxial, &QCheckBox::toggled,
this, &TaskFemConstraintBearing::onCheckAxial);

View File

@@ -148,8 +148,8 @@ TaskFemConstraintFluidBoundary::TaskFemConstraintFluidBoundary(ViewProviderFemCo
connect(ui->comboThermalBoundaryType, qOverload<int>(&QComboBox::currentIndexChanged),
this, &TaskFemConstraintFluidBoundary::onThermalBoundaryTypeChanged);
connect(ui->buttonDirection, SIGNAL(pressed()),
this, SLOT(onButtonDirection()));
connect(ui->buttonDirection, &QPushButton::pressed,
this, [=]{onButtonDirection(true);});
connect(ui->checkReverse, &QCheckBox::toggled,
this, &TaskFemConstraintFluidBoundary::onCheckReverse);

View File

@@ -58,8 +58,8 @@ TaskFemConstraintForce::TaskFemConstraintForce(ViewProviderFemConstraintForce* C
// create a context menu for the listview of the references
createDeleteAction(ui->listReferences);
deleteAction->connect(deleteAction, SIGNAL(triggered()), this, SLOT(onReferenceDeleted()));
connect(deleteAction, &QAction::triggered,
this, &TaskFemConstraintForce::onReferenceDeleted);
connect(ui->spinForce, qOverload<double>(&Gui::QuantitySpinBox::valueChanged),
this, &TaskFemConstraintForce::onForceChanged);
connect(ui->buttonDirection, &QToolButton::clicked,

View File

@@ -54,8 +54,8 @@ TaskFemConstraintGear::TaskFemConstraintGear(ViewProviderFemConstraint *Constrai
this, &TaskFemConstraintGear::onForceChanged);
connect(ui->spinForceAngle, qOverload<double>(&QDoubleSpinBox::valueChanged),
this, &TaskFemConstraintGear::onForceAngleChanged);
connect(ui->buttonDirection, SIGNAL(pressed()),
this, SLOT(onButtonDirection()));
connect(ui->buttonDirection, &QPushButton::pressed,
this, [=]{onButtonDirection(true);});
connect(ui->checkReversed, &QCheckBox::toggled,
this, &TaskFemConstraintGear::onCheckReversed);

View File

@@ -63,14 +63,16 @@ TaskTetParameter::TaskTetParameter(Fem::FemMeshShapeNetgenObject *pcObject,QWidg
this, &TaskTetParameter::maxSizeValueChanged);
QObject::connect(ui->comboBox_Fineness, qOverload<int>(&QComboBox::activated),
this, &TaskTetParameter::SwitchMethod);
QObject::connect(ui->checkBox_SecondOrder,SIGNAL(stateChanged (int)),this,SLOT(setQuadric(int)));
QObject::connect(ui->checkBox_SecondOrder, &QCheckBox::stateChanged,
this, &TaskTetParameter::setQuadric);
QObject::connect(ui->doubleSpinBox_GrowthRate, qOverload<double>(&QDoubleSpinBox::valueChanged),
this, &TaskTetParameter::setGrowthRate);
QObject::connect(ui->spinBox_SegsPerEdge, qOverload<int>(&QSpinBox::valueChanged),
this, &TaskTetParameter::setSegsPerEdge);
QObject::connect(ui->spinBox_SegsPerRadius, qOverload<int>(&QSpinBox::valueChanged),
this, &TaskTetParameter::setSegsPerRadius);
QObject::connect(ui->checkBox_Optimize,SIGNAL(stateChanged (int)),this,SLOT(setOptimize(int)));
QObject::connect(ui->checkBox_Optimize, &QCheckBox::stateChanged,
this, &TaskTetParameter::setOptimize);
if(pcObject->FemMesh.getValue().getInfo().numNode == 0)
touched = true;