From 8b16cead24db2fc4ea96369bc6b124f7ae7f894e Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Fri, 5 Jan 2018 19:49:50 +0200 Subject: [PATCH] Improve elliptical arc tooltip. --HG-- branch : develop --- .../toolcurve/vtoolellipticalarc.cpp | 29 ++++++++++--------- 1 file changed, 16 insertions(+), 13 deletions(-) diff --git a/src/libs/vtools/tools/drawTools/toolcurve/vtoolellipticalarc.cpp b/src/libs/vtools/tools/drawTools/toolcurve/vtoolellipticalarc.cpp index b749d2edf..7591947bb 100644 --- a/src/libs/vtools/tools/drawTools/toolcurve/vtoolellipticalarc.cpp +++ b/src/libs/vtools/tools/drawTools/toolcurve/vtoolellipticalarc.cpp @@ -431,19 +431,22 @@ QString VToolEllipticalArc::MakeToolTip() const " %6: %7 %3 " " %8: %9° " " %10: %11° " + " %14: %15° " "") - .arg(tr("Length")) - .arg(qApp->fromPixel(elArc->GetLength())) - .arg(UnitsToStr(qApp->patternUnit(), true)) - .arg(tr("Radius") + QLatin1String("1")) - .arg(qApp->fromPixel(elArc->GetRadius1())) - .arg(tr("Radius") + QLatin1String("2")) - .arg(qApp->fromPixel(elArc->GetRadius2())) - .arg(tr("Start angle")) - .arg(elArc->GetStartAngle()) - .arg(tr("End angle")) - .arg(elArc->GetEndAngle()) - .arg(tr("Label")) - .arg(elArc->name()); + .arg(tr("Length")) // 1 + .arg(qApp->fromPixel(elArc->GetLength())) // 2 + .arg(UnitsToStr(qApp->patternUnit(), true)) // 3 + .arg(tr("Radius") + QLatin1String("1")) // 4 + .arg(qApp->fromPixel(elArc->GetRadius1())) // 5 + .arg(tr("Radius") + QLatin1String("2")) // 6 + .arg(qApp->fromPixel(elArc->GetRadius2())) // 7 + .arg(tr("Start angle")) // 8 + .arg(elArc->GetStartAngle()) // 9 + .arg(tr("End angle")) // 10 + .arg(elArc->GetEndAngle()) // 11 + .arg(tr("Label")) // 12 + .arg(elArc->name()) // 13 + .arg(tr("Rotation")) // 14 + .arg(elArc->GetRotationAngle()); // 15 return toolTip; }