[PD] style improvements for Helix

all done automatically by MSVC
This commit is contained in:
Uwe
2021-12-19 17:52:33 +01:00
parent 7dad9a908f
commit 3d03f0a468
2 changed files with 16 additions and 16 deletions

View File

@@ -519,7 +519,7 @@ double Helix::safePitch()
if (startVec.Length() < Precision::Confusion()) {
// when not in growth mode any pitch > 0 is safe
if (mode != HelixMode::height_turns_growth) {
return Precision::Confusion();
return Precision::Confusion();
}
// if growth is not zero, there will in many cases be intersections
// when the turn is >= 1, thus return an 'infinite' pitch

View File

@@ -149,27 +149,27 @@ void TaskHelixParameters::connectSlots()
QMetaObject::connectSlotsByName(this);
connect(ui->pitch, SIGNAL(valueChanged(double)),
this, SLOT(onPitchChanged(double)));
this, SLOT(onPitchChanged(double)));
connect(ui->height, SIGNAL(valueChanged(double)),
this, SLOT(onHeightChanged(double)));
this, SLOT(onHeightChanged(double)));
connect(ui->turns, SIGNAL(valueChanged(double)),
this, SLOT(onTurnsChanged(double)));
this, SLOT(onTurnsChanged(double)));
connect(ui->coneAngle, SIGNAL(valueChanged(double)),
this, SLOT(onAngleChanged(double)));
this, SLOT(onAngleChanged(double)));
connect(ui->growth, SIGNAL(valueChanged(double)),
this, SLOT(onGrowthChanged(double)));
this, SLOT(onGrowthChanged(double)));
connect(ui->axis, SIGNAL(activated(int)),
this, SLOT(onAxisChanged(int)));
this, SLOT(onAxisChanged(int)));
connect(ui->checkBoxLeftHanded, SIGNAL(toggled(bool)),
this, SLOT(onLeftHandedChanged(bool)));
this, SLOT(onLeftHandedChanged(bool)));
connect(ui->checkBoxReversed, SIGNAL(toggled(bool)),
this, SLOT(onReversedChanged(bool)));
this, SLOT(onReversedChanged(bool)));
connect(ui->checkBoxUpdateView, SIGNAL(toggled(bool)),
this, SLOT(onUpdateView(bool)));
this, SLOT(onUpdateView(bool)));
connect(ui->inputMode, SIGNAL(activated(int)),
this, SLOT(onModeChanged(int)));
this, SLOT(onModeChanged(int)));
connect(ui->checkBoxOutside, SIGNAL(toggled(bool)),
this, SLOT(onOutsideChanged(bool)));
this, SLOT(onOutsideChanged(bool)));
}
void TaskHelixParameters::showCoordinateAxes()
@@ -278,8 +278,8 @@ int TaskHelixParameters::addCurrentLink()
}
void TaskHelixParameters::addAxisToCombo(App::DocumentObject* linkObj,
std::string linkSubname,
QString itemText)
std::string linkSubname,
QString itemText)
{
this->ui->axis->addItem(itemText);
this->axesInList.emplace_back(new App::PropertyLinkSub);
@@ -426,8 +426,8 @@ void TaskHelixParameters::onAxisChanged(int num)
if (lnk.getValue() == 0) {
// enter reference selection mode
TaskSketchBasedParameters::onSelectReference(AllowSelection::EDGE |
AllowSelection::PLANAR |
AllowSelection::CIRCLE);
AllowSelection::PLANAR |
AllowSelection::CIRCLE);
return;
}
else {