mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2024-09-21 20:01:40 +02:00
CodeViewWidget: Remove unnecessary QColor constructions
QBrush also accepts regular GlobalColor values as well.
This commit is contained in:
parent
e67cbd462b
commit
7032863569
1 changed files with 3 additions and 3 deletions
|
@ -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…
Reference in a new issue