Sketcher: Reformat to current clang-format standard

This commit is contained in:
Chris Hennes
2023-09-02 12:32:58 -05:00
committed by Chris Hennes
parent 41a1a7a8e6
commit 791fe02934
96 changed files with 2132 additions and 1185 deletions

View File

@@ -54,7 +54,9 @@ using namespace SketcherGui;
using namespace Gui::TaskView;
TaskSketcherSolverAdvanced::TaskSketcherSolverAdvanced(ViewProviderSketch* sketchView)
: TaskBox(Gui::BitmapFactory().pixmap("document-new"), tr("Advanced solver control"), true,
: TaskBox(Gui::BitmapFactory().pixmap("document-new"),
tr("Advanced solver control"),
true,
nullptr)
, sketchView(sketchView)
, ui(new Ui_TaskSketcherSolverAdvanced)
@@ -177,10 +179,12 @@ void TaskSketcherSolverAdvanced::updateDefaultMethodParameters()
int currentindex = ui->comboBoxDefaultSolver->currentIndex();
int redundantcurrentindex = ui->comboBoxRedundantDefaultSolver->currentIndex();
if (redundantcurrentindex == 2 || currentindex == 2)
if (redundantcurrentindex == 2 || currentindex == 2) {
ui->comboBoxDogLegGaussStep->setEnabled(true);
else
}
else {
ui->comboBoxDogLegGaussStep->setEnabled(false);
}
switch (currentindex) {
case 0:// BFGS
@@ -276,10 +280,12 @@ void TaskSketcherSolverAdvanced::updateRedundantMethodParameters()
int currentindex = ui->comboBoxDefaultSolver->currentIndex();
int redundantcurrentindex = ui->comboBoxRedundantDefaultSolver->currentIndex();
if (redundantcurrentindex == 2 || currentindex == 2)
if (redundantcurrentindex == 2 || currentindex == 2) {
ui->comboBoxDogLegGaussStep->setEnabled(true);
else
}
else {
ui->comboBoxDogLegGaussStep->setEnabled(false);
}
switch (redundantcurrentindex) {
case 0:// BFGS