fix: c++20 deprecate [=]
This commit is contained in:
@@ -108,10 +108,10 @@ TaskFemConstraintBearing::TaskFemConstraintBearing(ViewProviderFemConstraint* Co
|
||||
qOverload<double>(&QDoubleSpinBox::valueChanged),
|
||||
this,
|
||||
&TaskFemConstraintBearing::onDistanceChanged);
|
||||
connect(ui->buttonReference, &QPushButton::pressed, this, [=] {
|
||||
connect(ui->buttonReference, &QPushButton::pressed, this, [this] {
|
||||
onButtonReference(true);
|
||||
});
|
||||
connect(ui->buttonLocation, &QPushButton::pressed, this, [=] {
|
||||
connect(ui->buttonLocation, &QPushButton::pressed, this, [this] {
|
||||
onButtonLocation(true);
|
||||
});
|
||||
connect(ui->checkAxial, &QCheckBox::toggled, this, &TaskFemConstraintBearing::onCheckAxial);
|
||||
|
||||
@@ -179,7 +179,7 @@ TaskFemConstraintFluidBoundary::TaskFemConstraintFluidBoundary(
|
||||
this,
|
||||
&TaskFemConstraintFluidBoundary::onThermalBoundaryTypeChanged);
|
||||
|
||||
connect(ui->buttonDirection, &QPushButton::pressed, this, [=] {
|
||||
connect(ui->buttonDirection, &QPushButton::pressed, this, [this] {
|
||||
onButtonDirection(true);
|
||||
});
|
||||
connect(ui->checkReverse,
|
||||
|
||||
@@ -62,7 +62,7 @@ TaskFemConstraintGear::TaskFemConstraintGear(ViewProviderFemConstraint* Constrai
|
||||
qOverload<double>(&QDoubleSpinBox::valueChanged),
|
||||
this,
|
||||
&TaskFemConstraintGear::onForceAngleChanged);
|
||||
connect(ui->buttonDirection, &QPushButton::pressed, this, [=] {
|
||||
connect(ui->buttonDirection, &QPushButton::pressed, this, [this] {
|
||||
onButtonDirection(true);
|
||||
});
|
||||
connect(ui->checkReversed, &QCheckBox::toggled, this, &TaskFemConstraintGear::onCheckReversed);
|
||||
|
||||
Reference in New Issue
Block a user