diff --git a/src/app/dialogs/tools/dialogeditwrongformula.cpp b/src/app/dialogs/tools/dialogeditwrongformula.cpp index 29cf47caa..90325da76 100644 --- a/src/app/dialogs/tools/dialogeditwrongformula.cpp +++ b/src/app/dialogs/tools/dialogeditwrongformula.cpp @@ -123,86 +123,86 @@ void DialogEditWrongFormula::ValChenged(int row) { if (item->text()==data->HeightName()) { - QString desc = QString("%1(%2) - %3").arg(item->text()).arg(data->height()).arg(tr("Height")); + const QString desc = QString("%1(%2) - %3").arg(item->text()).arg(data->height()).arg(tr("Height")); ui->labelDescription->setText(desc); } if (item->text()==data->SizeName()) { - QString desc = QString("%1(%2) - %3").arg(item->text()).arg(data->size()).arg(tr("Size")); + const QString desc = QString("%1(%2) - %3").arg(item->text()).arg(data->size()).arg(tr("Size")); ui->labelDescription->setText(desc); } return; } if (ui->radioButtonStandardTable->isChecked()) { - QString name = qApp->VarFromUser(item->text()); - QSharedPointer stable = data->GetVariable(name); - QString desc = QString("%1(%2) - %3").arg(item->text()).arg(data->GetTableValue(name)) - .arg(stable->GetGuiText()); + const QString name = qApp->VarFromUser(item->text()); + const QSharedPointer stable = data->GetVariable(name); + const QString desc = QString("%1(%2) - %3").arg(item->text()).arg(data->GetTableValue(name)) + .arg(stable->GetGuiText()); ui->labelDescription->setText(desc); return; } if (ui->radioButtonIncrements->isChecked()) { - QSharedPointer incr = data->GetVariable(item->text()); - QString desc = QString("%1(%2) - %3").arg(item->text()).arg(data->GetTableValue(item->text())) - .arg(incr->GetDescription()); + const QSharedPointer incr = data->GetVariable(item->text()); + const QString desc = QString("%1(%2) - %3").arg(item->text()).arg(data->GetTableValue(item->text())) + .arg(incr->GetDescription()); ui->labelDescription->setText(desc); return; } if (ui->radioButtonLengthLine->isChecked()) { - QString desc = QString("%1(%2) - %3").arg(item->text()) - .arg(*data->GetVariable(qApp->VarFromUser(item->text()))->GetValue()) - .arg(tr("Line length")); + const QString desc = QString("%1(%2) - %3").arg(item->text()) + .arg(*data->GetVariable(qApp->VarFromUser(item->text()))->GetValue()) + .arg(tr("Line length")); ui->labelDescription->setText(desc); return; } if (ui->radioButtonLengthArc->isChecked()) { - QString desc = QString("%1(%2) - %3").arg(item->text()) - .arg(*data->GetVariable(qApp->VarFromUser(item->text()))->GetValue()) - .arg(tr("Arc length")); + const QString desc = QString("%1(%2) - %3").arg(item->text()) + .arg(*data->GetVariable(qApp->VarFromUser(item->text()))->GetValue()) + .arg(tr("Arc length")); ui->labelDescription->setText(desc); return; } if (ui->radioButtonLengthSpline->isChecked()) { - QString desc = QString("%1(%2) - %3").arg(item->text()) - .arg(*data->GetVariable(qApp->VarFromUser(item->text()))->GetValue()) - .arg(tr("Curve length")); + const QString desc = QString("%1(%2) - %3").arg(item->text()) + .arg(*data->GetVariable(qApp->VarFromUser(item->text()))->GetValue()) + .arg(tr("Curve length")); ui->labelDescription->setText(desc); return; } if (ui->radioButtonAngleLine->isChecked()) { - QString desc = QString("%1(%2) - %3").arg(item->text()) - .arg(*data->GetVariable(qApp->VarFromUser(item->text()))->GetValue()) - .arg(tr("Line Angle")); + const QString desc = QString("%1(%2) - %3").arg(item->text()) + .arg(*data->GetVariable(qApp->VarFromUser(item->text()))->GetValue()) + .arg(tr("Line Angle")); ui->labelDescription->setText(desc); return; } if (ui->radioButtonRadiusesArcs->isChecked()) { - QString desc = QString("%1(%2) - %3").arg(item->text()) - .arg(*data->GetVariable(qApp->VarFromUser(item->text()))->GetValue()) - .arg(tr("Arc radius")); + const QString desc = QString("%1(%2) - %3").arg(item->text()) + .arg(*data->GetVariable(qApp->VarFromUser(item->text()))->GetValue()) + .arg(tr("Arc radius")); ui->labelDescription->setText(desc); return; } if (ui->radioButtonAnglesArcs->isChecked()) { - QString desc = QString("%1(%2) - %3").arg(item->text()) - .arg(*data->GetVariable(qApp->VarFromUser(item->text()))->GetValue()) - .arg(tr("Arc angle")); + const QString desc = QString("%1(%2) - %3").arg(item->text()) + .arg(*data->GetVariable(qApp->VarFromUser(item->text()))->GetValue()) + .arg(tr("Arc angle")); ui->labelDescription->setText(desc); return; } if (ui->radioButtonAnglesCurves->isChecked()) { - QString desc = QString("%1(%2) - %3").arg(item->text()) - .arg(*data->GetVariable(qApp->VarFromUser(item->text()))->GetValue()) - .arg(tr("Curve angle")); + const QString desc = QString("%1(%2) - %3").arg(item->text()) + .arg(*data->GetVariable(qApp->VarFromUser(item->text()))->GetValue()) + .arg(tr("Curve angle")); ui->labelDescription->setText(desc); return; }