Permalink
Browse files

CodeViewWidget: Remove unnecessary QColor constructions

QBrush also accepts regular GlobalColor values as well.
  • Loading branch information...
lioncash committed May 13, 2018
1 parent e67cbd4 commit 703286356986ae2317bedfa20ee7dc36fa3aac81
Showing with 3 additions and 3 deletions.
  1. +3 −3 Source/Core/DolphinQt2/Debugger/CodeViewWidget.cpp
@@ -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);
}
}

0 comments on commit 7032863

Please sign in to comment.