[TD]support pyramid arrow in leader
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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());
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user