TechDraw: remove unneeded state from QGIDecoration

This commit is contained in:
Benjamin Bræstrup Sayoc
2025-02-23 00:07:20 +01:00
parent 37cd2bd03a
commit 6cb6757908
4 changed files with 23 additions and 45 deletions

View File

@@ -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);
}