diff options
| author | Lioncash <mathew1800@gmail.com> | 2018-05-13 18:01:08 -0400 |
|---|---|---|
| committer | Lioncash <mathew1800@gmail.com> | 2018-05-13 18:01:10 -0400 |
| commit | 703286356986ae2317bedfa20ee7dc36fa3aac81 (patch) | |
| tree | 756bfdf1ff6bd603607053a42bf2537e0943faff /Source/Core/DolphinQt2/Debugger/CodeViewWidget.cpp | |
| parent | e67cbd462b96af1ce753a4e07514bb51d89c615d (diff) | |
CodeViewWidget: Remove unnecessary QColor constructions
QBrush also accepts regular GlobalColor values as well.
Diffstat (limited to 'Source/Core/DolphinQt2/Debugger/CodeViewWidget.cpp')
| -rw-r--r-- | Source/Core/DolphinQt2/Debugger/CodeViewWidget.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/Core/DolphinQt2/Debugger/CodeViewWidget.cpp b/Source/Core/DolphinQt2/Debugger/CodeViewWidget.cpp index e531fc66c8..ad8b4a54c7 100644 --- a/Source/Core/DolphinQt2/Debugger/CodeViewWidget.cpp +++ b/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); } } |
