Fixed wrong units in dialog DialogEditWrongFormula.
--HG-- branch : develop
This commit is contained in:
parent
34beaed2b2
commit
c2b7ead2ce
|
@ -294,7 +294,7 @@ void DialogRotation::FXAngle()
|
|||
DialogEditWrongFormula *dialog = new DialogEditWrongFormula(data, toolId, this);
|
||||
dialog->setWindowTitle(tr("Edit angle"));
|
||||
dialog->SetFormula(GetAngle());
|
||||
dialog->setPostfix(VDomDocument::UnitsToStr(qApp->patternUnit(), true));
|
||||
dialog->setPostfix(degreeSymbol);
|
||||
if (dialog->exec() == QDialog::Accepted)
|
||||
{
|
||||
SetAngle(dialog->GetFormula());
|
||||
|
|
|
@ -290,7 +290,7 @@ void DialogSpline::FXAngle1()
|
|||
QString angle1F = qApp->TrVars()->TryFormulaFromUser(ui->plainTextEditAngle1F->toPlainText(),
|
||||
qApp->Settings()->GetOsSeparator());
|
||||
dialog->SetFormula(angle1F);
|
||||
dialog->setPostfix(VDomDocument::UnitsToStr(qApp->patternUnit(), true));
|
||||
dialog->setPostfix(degreeSymbol);
|
||||
if (dialog->exec() == QDialog::Accepted)
|
||||
{
|
||||
angle1F = qApp->TrVars()->FormulaToUser(dialog->GetFormula(), qApp->Settings()->GetOsSeparator());
|
||||
|
@ -313,7 +313,7 @@ void DialogSpline::FXAngle2()
|
|||
QString angle2F = qApp->TrVars()->TryFormulaFromUser(ui->plainTextEditAngle2F->toPlainText(),
|
||||
qApp->Settings()->GetOsSeparator());
|
||||
dialog->SetFormula(angle2F);
|
||||
dialog->setPostfix(VDomDocument::UnitsToStr(qApp->patternUnit(), true));
|
||||
dialog->setPostfix(degreeSymbol);
|
||||
if (dialog->exec() == QDialog::Accepted)
|
||||
{
|
||||
angle2F = qApp->TrVars()->FormulaToUser(dialog->GetFormula(), qApp->Settings()->GetOsSeparator());
|
||||
|
|
|
@ -462,7 +462,7 @@ void DialogSplinePath::FXAngle1()
|
|||
qApp->Settings()->GetOsSeparator());
|
||||
|
||||
dialog->SetFormula(angle1F);
|
||||
dialog->setPostfix(VDomDocument::UnitsToStr(qApp->patternUnit(), true));
|
||||
dialog->setPostfix(degreeSymbol);
|
||||
if (dialog->exec() == QDialog::Accepted)
|
||||
{
|
||||
angle1F = qApp->TrVars()->FormulaToUser(dialog->GetFormula(), qApp->Settings()->GetOsSeparator());
|
||||
|
@ -487,7 +487,7 @@ void DialogSplinePath::FXAngle2()
|
|||
qApp->Settings()->GetOsSeparator());
|
||||
|
||||
dialog->SetFormula(angle2F);
|
||||
dialog->setPostfix(VDomDocument::UnitsToStr(qApp->patternUnit(), true));
|
||||
dialog->setPostfix(degreeSymbol);
|
||||
if (dialog->exec() == QDialog::Accepted)
|
||||
{
|
||||
angle2F = qApp->TrVars()->FormulaToUser(dialog->GetFormula(), qApp->Settings()->GetOsSeparator());
|
||||
|
|
Loading…
Reference in New Issue
Block a user