mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-10 08:09:26 +01:00
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)
|
||||
{
|
||||
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);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user