Correct the unit symbol.
This commit is contained in:
parent
4f43412dc3
commit
c704321d5a
|
@ -954,7 +954,7 @@ void DialogPiecePath::EvalPassmarkAngle()
|
||||||
formulaData.variables = data->DataVariables();
|
formulaData.variables = data->DataVariables();
|
||||||
formulaData.labelEditFormula = ui->labelEditPassmarkAngle;
|
formulaData.labelEditFormula = ui->labelEditPassmarkAngle;
|
||||||
formulaData.labelResult = ui->labelResultPassmarkAngle;
|
formulaData.labelResult = ui->labelResultPassmarkAngle;
|
||||||
formulaData.postfix = UnitsToStr(VAbstractValApplication::VApp()->patternUnits(), true);
|
formulaData.postfix = degreeSymbol;
|
||||||
formulaData.checkZero = false;
|
formulaData.checkZero = false;
|
||||||
formulaData.checkLessThanZero = false;
|
formulaData.checkLessThanZero = false;
|
||||||
|
|
||||||
|
@ -1059,7 +1059,7 @@ void DialogPiecePath::FXPassmarkAngle()
|
||||||
QScopedPointer<DialogEditWrongFormula> dialog(new DialogEditWrongFormula(data, toolId, this));
|
QScopedPointer<DialogEditWrongFormula> dialog(new DialogEditWrongFormula(data, toolId, this));
|
||||||
dialog->setWindowTitle(tr("Edit passmark angle"));
|
dialog->setWindowTitle(tr("Edit passmark angle"));
|
||||||
dialog->SetFormula(GetFormulaPassmarkAngle());
|
dialog->SetFormula(GetFormulaPassmarkAngle());
|
||||||
dialog->setPostfix(UnitsToStr(VAbstractValApplication::VApp()->patternUnits(), true));
|
dialog->setPostfix(degreeSymbol);
|
||||||
if (dialog->exec() == QDialog::Accepted)
|
if (dialog->exec() == QDialog::Accepted)
|
||||||
{
|
{
|
||||||
SetFormulaPassmarkAngle(dialog->GetFormula());
|
SetFormulaPassmarkAngle(dialog->GetFormula());
|
||||||
|
|
|
@ -2437,7 +2437,7 @@ void DialogSeamAllowance::EvalPassmarkAngle()
|
||||||
formulaData.variables = data->DataVariables();
|
formulaData.variables = data->DataVariables();
|
||||||
formulaData.labelEditFormula = uiTabPassmarks->labelEditPassmarkAngle;
|
formulaData.labelEditFormula = uiTabPassmarks->labelEditPassmarkAngle;
|
||||||
formulaData.labelResult = uiTabPassmarks->labelResultPassmarkAngle;
|
formulaData.labelResult = uiTabPassmarks->labelResultPassmarkAngle;
|
||||||
formulaData.postfix = UnitsToStr(VAbstractValApplication::VApp()->patternUnits(), true);
|
formulaData.postfix = degreeSymbol;
|
||||||
formulaData.checkZero = false;
|
formulaData.checkZero = false;
|
||||||
formulaData.checkLessThanZero = false;
|
formulaData.checkLessThanZero = false;
|
||||||
|
|
||||||
|
@ -2528,7 +2528,7 @@ void DialogSeamAllowance::FXPassmarkAngle()
|
||||||
QScopedPointer<DialogEditWrongFormula> dialog(new DialogEditWrongFormula(data, toolId, this));
|
QScopedPointer<DialogEditWrongFormula> dialog(new DialogEditWrongFormula(data, toolId, this));
|
||||||
dialog->setWindowTitle(tr("Edit passmark angle"));
|
dialog->setWindowTitle(tr("Edit passmark angle"));
|
||||||
dialog->SetFormula(GetFormulaFromUser(uiTabPassmarks->plainTextEditPassmarkAngle));
|
dialog->SetFormula(GetFormulaFromUser(uiTabPassmarks->plainTextEditPassmarkAngle));
|
||||||
dialog->setPostfix(UnitsToStr(VAbstractValApplication::VApp()->patternUnits(), true));
|
dialog->setPostfix(degreeSymbol);
|
||||||
if (dialog->exec() == QDialog::Accepted)
|
if (dialog->exec() == QDialog::Accepted)
|
||||||
{
|
{
|
||||||
SetFormulaPassmarkAngle(dialog->GetFormula());
|
SetFormulaPassmarkAngle(dialog->GetFormula());
|
||||||
|
|
Loading…
Reference in New Issue
Block a user