[pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci
This commit is contained in:
pre-commit-ci[bot]
2023-09-12 13:03:02 +00:00
committed by WandererFan
parent a207d11fa4
commit e92ed45df9
435 changed files with 2669 additions and 2645 deletions

View File

@@ -163,7 +163,7 @@ int EditDatumDialog::exec(bool atCursor)
connect(&dlg, &QDialog::rejected, this, &EditDatumDialog::rejected);
if (atCursor) {
dlg.show();// Need to show the dialog so geometry is computed
dlg.show(); // Need to show the dialog so geometry is computed
QRect pg = dlg.parentWidget()->geometry();
int Xmin = pg.x() + 10;
int Ymin = pg.y() + 10;
@@ -251,8 +251,8 @@ void EditDatumDialog::accepted()
Gui::Command::abortCommand();
if (sketch->noRecomputes) {// if setdatum failed, it is highly likely that solver
// information is invalid.
if (sketch->noRecomputes) { // if setdatum failed, it is highly likely that solver
// information is invalid.
sketch->solve();
}
}
@@ -276,7 +276,7 @@ void EditDatumDialog::drivingToggled(bool state)
ui_ins_datum->labelEdit->setToLastUsedValue();
}
sketch->setDriving(ConstrNbr, !state);
if (!sketch->noRecomputes) {// if noRecomputes, solve() is already done by setDriving()
if (!sketch->noRecomputes) { // if noRecomputes, solve() is already done by setDriving()
sketch->solve();
}
}