CodeViewWidget: Remove unnecessary QColor constructions
QBrush also accepts regular GlobalColor values as well.
This commit is contained in:
parent
e67cbd462b
commit
7032863569
|
@ -127,13 +127,13 @@ void CodeViewWidget::Update()
|
||||||
|
|
||||||
if (color != 0xFFFFFF)
|
if (color != 0xFFFFFF)
|
||||||
{
|
{
|
||||||
item->setForeground(QColor(Qt::black));
|
item->setForeground(Qt::black);
|
||||||
item->setBackground(QColor(color));
|
item->setBackground(QColor(color));
|
||||||
}
|
}
|
||||||
if (addr == pc && item != bp_item)
|
if (addr == pc && item != bp_item)
|
||||||
{
|
{
|
||||||
item->setBackground(QColor(Qt::green));
|
item->setBackground(Qt::green);
|
||||||
item->setForeground(QColor(Qt::black));
|
item->setForeground(Qt::black);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue