Fix incorrect angle value in tool tooltip.

(grafted from 3d1fe3de2bb0d8675ed89934456792906bf1d0eb)

--HG--
branch : develop
This commit is contained in:
Roman Telezhynskyi 2019-10-17 14:54:54 +03:00
parent 43b6125edd
commit b3cc614789
3 changed files with 6 additions and 6 deletions

View File

@ -390,9 +390,9 @@ QString VToolArc::MakeToolTip() const
.arg(UnitsToStr(qApp->patternUnit(), true), tr("Radius")) .arg(UnitsToStr(qApp->patternUnit(), true), tr("Radius"))
.arg(qApp->fromPixel(arc->GetRadius())) .arg(qApp->fromPixel(arc->GetRadius()))
.arg(tr("Start angle")) .arg(tr("Start angle"))
.arg(qApp->fromPixel(arc->GetStartAngle())) .arg(arc->GetStartAngle())
.arg(tr("End angle")) .arg(tr("End angle"))
.arg(qApp->fromPixel(arc->GetEndAngle())) .arg(arc->GetEndAngle())
.arg(tr("Label"), arc->name()); .arg(tr("Label"), arc->name());
return toolTip; return toolTip;
} }

View File

@ -369,9 +369,9 @@ QString VToolArcWithLength::MakeToolTip() const
.arg(UnitsToStr(qApp->patternUnit(), true), tr("Radius")) .arg(UnitsToStr(qApp->patternUnit(), true), tr("Radius"))
.arg(qApp->fromPixel(arc->GetRadius())) .arg(qApp->fromPixel(arc->GetRadius()))
.arg(tr("Start angle")) .arg(tr("Start angle"))
.arg(qApp->fromPixel(arc->GetStartAngle())) .arg(arc->GetStartAngle())
.arg(tr("End angle")) .arg(tr("End angle"))
.arg(qApp->fromPixel(arc->GetEndAngle())) .arg(arc->GetEndAngle())
.arg(tr("Label"), arc->name()); .arg(tr("Label"), arc->name());
return toolTip; return toolTip;
} }

View File

@ -278,9 +278,9 @@ QString VToolCutArc::MakeToolTip() const
.arg(UnitsToStr(qApp->patternUnit(), true), arcStr + arcNumber + QChar(QChar::Space) + radiusStr) .arg(UnitsToStr(qApp->patternUnit(), true), arcStr + arcNumber + QChar(QChar::Space) + radiusStr)
.arg(qApp->fromPixel(arc.GetRadius())) .arg(qApp->fromPixel(arc.GetRadius()))
.arg(arcStr + arcNumber + QChar(QChar::Space) + startAngleStr) .arg(arcStr + arcNumber + QChar(QChar::Space) + startAngleStr)
.arg(qApp->fromPixel(arc.GetStartAngle())) .arg(arc.GetStartAngle())
.arg(arcStr + arcNumber + QChar(QChar::Space) + endAngleStr) .arg(arcStr + arcNumber + QChar(QChar::Space) + endAngleStr)
.arg(qApp->fromPixel(arc.GetEndAngle())) .arg(arc.GetEndAngle())
.arg(arcStr + arcNumber + QChar(QChar::Space) + tr("label"), arc.name()); .arg(arcStr + arcNumber + QChar(QChar::Space) + tr("label"), arc.name());
return toolTip; return toolTip;
}; };