From 3c97d0b9e89b090c913534fb45e79793e55eb982 Mon Sep 17 00:00:00 2001 From: WandererFan Date: Sun, 29 Dec 2019 22:02:52 -0500 Subject: [PATCH] [TD]support pyramid arrow in leader --- src/Mod/TechDraw/App/DrawLeaderLine.h | 2 +- src/Mod/TechDraw/Gui/QGILeaderLine.cpp | 2 +- src/Mod/TechDraw/Gui/TaskLeaderLine.ui | 22 ++++++++++++++++++++-- 3 files changed, 22 insertions(+), 4 deletions(-) diff --git a/src/Mod/TechDraw/App/DrawLeaderLine.h b/src/Mod/TechDraw/App/DrawLeaderLine.h index 4ebf1836727f..cd2768411715 100644 --- a/src/Mod/TechDraw/App/DrawLeaderLine.h +++ b/src/Mod/TechDraw/App/DrawLeaderLine.h @@ -44,7 +44,7 @@ class TechDrawExport DrawLeaderLine : public TechDraw::DrawView App::PropertyLink LeaderParent; App::PropertyVectorList WayPoints; - App::PropertyInteger StartSymbol; + App::PropertyInteger StartSymbol; //see Gui/QGIArrow for values App::PropertyInteger EndSymbol; App::PropertyBool Scalable; App::PropertyBool AutoHorizontal; diff --git a/src/Mod/TechDraw/Gui/QGILeaderLine.cpp b/src/Mod/TechDraw/Gui/QGILeaderLine.cpp index 6d9d7a5b6a0a..cbaf52385e5d 100644 --- a/src/Mod/TechDraw/Gui/QGILeaderLine.cpp +++ b/src/Mod/TechDraw/Gui/QGILeaderLine.cpp @@ -492,7 +492,7 @@ void QGILeaderLine::setArrows(std::vector pathPoints) TechDraw::DrawLeaderLine* featLeader = getFeature(); double baseScale = featLeader->getBaseScale(); - QPointF lastOffset = (pathPoints.back() - pathPoints.front()) * baseScale; + QPointF lastOffset = (pathPoints.back() - pathPoints.front()); if (featLeader->StartSymbol.getValue() > -1) { m_arrow1->setStyle(featLeader->StartSymbol.getValue()); diff --git a/src/Mod/TechDraw/Gui/TaskLeaderLine.ui b/src/Mod/TechDraw/Gui/TaskLeaderLine.ui index e4ea19d704ae..51bbe1842e7b 100644 --- a/src/Mod/TechDraw/Gui/TaskLeaderLine.ui +++ b/src/Mod/TechDraw/Gui/TaskLeaderLine.ui @@ -153,7 +153,7 @@ - 1 + 0 @@ -214,6 +214,15 @@ :/icons/arrowfork.svg:/icons/arrowfork.svg + + + Pyramid + + + + :/icons/arrowpyramid.svg:/icons/arrowpyramid.svg + + @@ -284,6 +293,15 @@ :/icons/arrowfork.svg:/icons/arrowfork.svg + + + Pyramid + + + + :/icons/arrowpyramid.svg:/icons/arrowpyramid.svg + + @@ -295,7 +313,7 @@ - + 0 0