FEM: move to new style connect()
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user