Fix incorrect angle value in tool tooltip.

--HG--
branch : release
This commit is contained in:
Roman Telezhynskyi 2019-10-17 14:54:54 +03:00
parent 3db4f4ef6d
commit ea18a1c2ec
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;
}; };