[TD]SectionLine colour property

This commit is contained in:
wandererfan
2020-03-25 09:20:52 -04:00
committed by WandererFan
parent 871a2732e4
commit 14e6b19e75
5 changed files with 42 additions and 18 deletions

View File

@@ -275,6 +275,10 @@ void QGISectionLine::setFont(QFont f, double fsize)
m_symSize = fsize;
}
void QGISectionLine::setSectionColor(QColor c)
{
setColor(c);
}
QColor QGISectionLine::getSectionColor()
{
@@ -354,11 +358,12 @@ void QGISectionLine::setTools()
// m_arrow2->setPen(m_pen);
// m_arrow1->setBrush(m_brush);
// m_arrow2->setBrush(m_brush);
m_arrow1->setNormalColor(getSectionColor());
m_arrow1->setFillColor(getSectionColor());
m_arrow1->setNormalColor(m_colCurrent);
m_arrow1->setFillColor(m_colCurrent);
m_arrow1->setPrettyNormal();
m_arrow2->setNormalColor(getSectionColor());
m_arrow2->setFillColor(getSectionColor());
m_arrow2->setNormalColor(m_colCurrent);
m_arrow2->setFillColor(m_colCurrent);
m_arrow2->setPrettyNormal();
m_symbol1->setDefaultTextColor(m_colCurrent);