CodeViewWidget: Remove unnecessary QColor constructions

QBrush also accepts regular GlobalColor values as well.
This commit is contained in:
Lioncash 2018-05-13 18:01:08 -04:00
parent e67cbd462b
commit 7032863569

View file

@ -127,13 +127,13 @@ void CodeViewWidget::Update()
if (color != 0xFFFFFF)
{
item->setForeground(QColor(Qt::black));
item->setForeground(Qt::black);
item->setBackground(QColor(color));
}
if (addr == pc && item != bp_item)
{
item->setBackground(QColor(Qt::green));
item->setForeground(QColor(Qt::black));
item->setBackground(Qt::green);
item->setForeground(Qt::black);
}
}