FEM: move to new style connect()

This commit is contained in:
wmayer
2023-01-15 19:50:46 +01:00
parent a122aa01a7
commit d4cb3aca0e
24 changed files with 216 additions and 230 deletions

View File

@@ -48,16 +48,16 @@ using namespace Gui;
TaskFemConstraintGear::TaskFemConstraintGear(ViewProviderFemConstraint *ConstraintView,QWidget *parent, const char *pixmapname)
: TaskFemConstraintBearing(ConstraintView, parent, pixmapname)
{
connect(ui->spinDiameter, SIGNAL(valueChanged(double)),
this, SLOT(onDiameterChanged(double)));
connect(ui->spinForce, SIGNAL(valueChanged(double)),
this, SLOT(onForceChanged(double)));
connect(ui->spinForceAngle, SIGNAL(valueChanged(double)),
this, SLOT(onForceAngleChanged(double)));
connect(ui->spinDiameter, qOverload<double>(&QDoubleSpinBox::valueChanged),
this, &TaskFemConstraintGear::onDiameterChanged);
connect(ui->spinForce, qOverload<double>(&QDoubleSpinBox::valueChanged),
this, &TaskFemConstraintGear::onForceChanged);
connect(ui->spinForceAngle, qOverload<double>(&QDoubleSpinBox::valueChanged),
this, &TaskFemConstraintGear::onForceAngleChanged);
connect(ui->buttonDirection, SIGNAL(pressed()),
this, SLOT(onButtonDirection()));
connect(ui->checkReversed, SIGNAL(toggled(bool)),
this, SLOT(onCheckReversed(bool)));
connect(ui->checkReversed, &QCheckBox::toggled,
this, &TaskFemConstraintGear::onCheckReversed);
// Temporarily prevent unnecessary feature recomputes
ui->spinDiameter->blockSignals(true);