From b3cc61478917160cfd73b7399a6735c77117c876 Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Thu, 17 Oct 2019 14:54:54 +0300 Subject: [PATCH] Fix incorrect angle value in tool tooltip. (grafted from 3d1fe3de2bb0d8675ed89934456792906bf1d0eb) --HG-- branch : develop --- src/libs/vtools/tools/drawTools/toolcurve/vtoolarc.cpp | 4 ++-- .../vtools/tools/drawTools/toolcurve/vtoolarcwithlength.cpp | 4 ++-- .../toolpoint/toolsinglepoint/toolcut/vtoolcutarc.cpp | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/libs/vtools/tools/drawTools/toolcurve/vtoolarc.cpp b/src/libs/vtools/tools/drawTools/toolcurve/vtoolarc.cpp index 6fce634c6..dda87f014 100644 --- a/src/libs/vtools/tools/drawTools/toolcurve/vtoolarc.cpp +++ b/src/libs/vtools/tools/drawTools/toolcurve/vtoolarc.cpp @@ -390,9 +390,9 @@ QString VToolArc::MakeToolTip() const .arg(UnitsToStr(qApp->patternUnit(), true), tr("Radius")) .arg(qApp->fromPixel(arc->GetRadius())) .arg(tr("Start angle")) - .arg(qApp->fromPixel(arc->GetStartAngle())) + .arg(arc->GetStartAngle()) .arg(tr("End angle")) - .arg(qApp->fromPixel(arc->GetEndAngle())) + .arg(arc->GetEndAngle()) .arg(tr("Label"), arc->name()); return toolTip; } diff --git a/src/libs/vtools/tools/drawTools/toolcurve/vtoolarcwithlength.cpp b/src/libs/vtools/tools/drawTools/toolcurve/vtoolarcwithlength.cpp index 7ba41d04e..907a318c2 100644 --- a/src/libs/vtools/tools/drawTools/toolcurve/vtoolarcwithlength.cpp +++ b/src/libs/vtools/tools/drawTools/toolcurve/vtoolarcwithlength.cpp @@ -369,9 +369,9 @@ QString VToolArcWithLength::MakeToolTip() const .arg(UnitsToStr(qApp->patternUnit(), true), tr("Radius")) .arg(qApp->fromPixel(arc->GetRadius())) .arg(tr("Start angle")) - .arg(qApp->fromPixel(arc->GetStartAngle())) + .arg(arc->GetStartAngle()) .arg(tr("End angle")) - .arg(qApp->fromPixel(arc->GetEndAngle())) + .arg(arc->GetEndAngle()) .arg(tr("Label"), arc->name()); return toolTip; } diff --git a/src/libs/vtools/tools/drawTools/toolpoint/toolsinglepoint/toolcut/vtoolcutarc.cpp b/src/libs/vtools/tools/drawTools/toolpoint/toolsinglepoint/toolcut/vtoolcutarc.cpp index 86f9f1215..bea459a11 100644 --- a/src/libs/vtools/tools/drawTools/toolpoint/toolsinglepoint/toolcut/vtoolcutarc.cpp +++ b/src/libs/vtools/tools/drawTools/toolpoint/toolsinglepoint/toolcut/vtoolcutarc.cpp @@ -278,9 +278,9 @@ QString VToolCutArc::MakeToolTip() const .arg(UnitsToStr(qApp->patternUnit(), true), arcStr + arcNumber + QChar(QChar::Space) + radiusStr) .arg(qApp->fromPixel(arc.GetRadius())) .arg(arcStr + arcNumber + QChar(QChar::Space) + startAngleStr) - .arg(qApp->fromPixel(arc.GetStartAngle())) + .arg(arc.GetStartAngle()) .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()); return toolTip; };