[TD]support pyramid arrow in leader

This commit is contained in:
WandererFan
2019-12-29 22:02:52 -05:00
committed by WandererFan
parent 911ab15224
commit 98ed976e24
3 changed files with 22 additions and 4 deletions

View File

@@ -44,7 +44,7 @@ public:
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;

View File

@@ -492,7 +492,7 @@ void QGILeaderLine::setArrows(std::vector<QPointF> 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());

View File

@@ -153,7 +153,7 @@
<item row="1" column="1">
<widget class="QComboBox" name="cboxStartSym">
<property name="currentIndex">
<number>1</number>
<number>0</number>
</property>
<item>
<property name="text">
@@ -214,6 +214,15 @@
<normaloff>:/icons/arrowfork.svg</normaloff>:/icons/arrowfork.svg</iconset>
</property>
</item>
<item>
<property name="text">
<string>Pyramid</string>
</property>
<property name="icon">
<iconset resource="Resources/TechDraw.qrc">
<normaloff>:/icons/arrowpyramid.svg</normaloff>:/icons/arrowpyramid.svg</iconset>
</property>
</item>
</widget>
</item>
<item row="2" column="0">
@@ -284,6 +293,15 @@
<normaloff>:/icons/arrowfork.svg</normaloff>:/icons/arrowfork.svg</iconset>
</property>
</item>
<item>
<property name="text">
<string>Pyramid</string>
</property>
<property name="icon">
<iconset resource="Resources/TechDraw.qrc">
<normaloff>:/icons/arrowpyramid.svg</normaloff>:/icons/arrowpyramid.svg</iconset>
</property>
</item>
</widget>
</item>
<item row="3" column="0">
@@ -295,7 +313,7 @@
</item>
<item row="3" column="1">
<widget class="Gui::ColorButton" name="cpLineColor">
<property name="color">
<property name="color" stdset="0">
<color>
<red>0</red>
<green>0</green>