TechDraw: remove unneeded state from QGIDecoration
This commit is contained in:
@@ -483,22 +483,18 @@ void QGISectionLine::paint ( QPainter * painter, const QStyleOptionGraphicsItem
|
||||
|
||||
void QGISectionLine::setTools()
|
||||
{
|
||||
m_pen.setWidthF(m_width);
|
||||
m_pen.setColor(m_colCurrent);
|
||||
m_brush.setStyle(m_brushCurrent);
|
||||
m_brush.setColor(m_colCurrent);
|
||||
|
||||
m_line->setPen(m_pen);
|
||||
QColor currentColor = m_pen.color();
|
||||
|
||||
m_arrow1->setNormalColor(m_colCurrent);
|
||||
m_arrow1->setFillColor(m_colCurrent);
|
||||
m_arrow1->setNormalColor(currentColor);
|
||||
m_arrow1->setFillColor(currentColor);
|
||||
m_arrow1->setPrettyNormal();
|
||||
m_arrow2->setNormalColor(m_colCurrent);
|
||||
m_arrow2->setFillColor(m_colCurrent);
|
||||
m_arrow2->setNormalColor(currentColor);
|
||||
m_arrow2->setFillColor(currentColor);
|
||||
m_arrow2->setPrettyNormal();
|
||||
|
||||
m_symbol1->setDefaultTextColor(m_colCurrent);
|
||||
m_symbol2->setDefaultTextColor(m_colCurrent);
|
||||
m_symbol1->setDefaultTextColor(currentColor);
|
||||
m_symbol2->setDefaultTextColor(currentColor);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user