[TD]Fix Dimension Color Regression

- still an issue where text looses select color if
  clicked while selected
This commit is contained in:
wandererfan
2019-09-29 16:19:42 -04:00
committed by WandererFan
parent 5f619c6743
commit d7dabeb885
3 changed files with 23 additions and 2 deletions

View File

@@ -168,6 +168,13 @@ void QGCustomText::setPrettySel() {
update();
}
void QGCustomText::setColor(QColor c)
{
m_colNormal = c;
m_colCurrent = c;
QGraphicsTextItem::setDefaultTextColor(c);
}
void QGCustomText::paint ( QPainter * painter, const QStyleOptionGraphicsItem * option, QWidget * widget) {
QStyleOptionGraphicsItem myOption(*option);
myOption.state &= ~QStyle::State_Selected;