[TD]Fix section line unfilled arrow heads

This commit is contained in:
wandererfan
2019-09-16 13:33:31 -04:00
committed by WandererFan
parent ee0bcc095c
commit 4556d3f191
3 changed files with 6 additions and 12 deletions

View File

@@ -319,9 +319,5 @@ void QGIArrow::paint(QPainter *painter, const QStyleOptionGraphicsItem *option,
QStyleOptionGraphicsItem myOption(*option);
myOption.state &= ~QStyle::State_Selected;
setPen(m_pen);
m_brush.setColor(m_colCurrent);
m_brush.setStyle(m_fill);
setBrush(m_brush);
QGIPrimPath::paint (painter, &myOption, widget);
}

View File

@@ -346,10 +346,12 @@ void QGISectionLine::setTools()
m_line->setPen(m_pen);
m_arrow1->setPen(m_pen);
m_arrow2->setPen(m_pen);
m_arrow1->setBrush(m_brush);
m_arrow2->setBrush(m_brush);
// m_arrow1->setPen(m_pen);
// m_arrow2->setPen(m_pen);
// m_arrow1->setBrush(m_brush);
// m_arrow2->setBrush(m_brush);
m_arrow1->setPrettyNormal();
m_arrow2->setPrettyNormal();
m_symbol1->setDefaultTextColor(m_colCurrent);
m_symbol2->setDefaultTextColor(m_colCurrent);

View File

@@ -42,14 +42,10 @@ public:
float getRadius() { return m_radius; }
virtual void setRadius(float r);
/* Qt::BrushStyle getFill() { return m_fill; }*/
/* void setFill(Qt::BrushStyle f) { m_fill = f; }*/
protected:
int projIndex;
float m_radius;
/* QBrush m_brush;*/
/* Qt::BrushStyle m_fill;*/
private:
};