[TD]Fix section line unfilled arrow heads
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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:
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user