Commit 60526393 authored by Daniel Teske's avatar Daniel Teske Committed by Eike Ziller
Browse files

TargetSelector: Don't set the pen twice to the same color



Change-Id: I1d383193057968a8e27491b3bf94cd52ccbd0fca
Reviewed-by: default avatarEike Ziller <eike.ziller@nokia.com>
parent 9e92dcee
...@@ -274,7 +274,6 @@ void TargetSelector::paintEvent(QPaintEvent *event) ...@@ -274,7 +274,6 @@ void TargetSelector::paintEvent(QPaintEvent *event)
int margin = 2; // position centered within the rounded buttons int margin = 2; // position centered within the rounded buttons
QFontMetrics fm = fontMetrics(); QFontMetrics fm = fontMetrics();
QRect textRect(x + margin, size.height() - fm.height() - 7, targetWidth()/2, fm.height()); QRect textRect(x + margin, size.height() - fm.height() - 7, targetWidth()/2, fm.height());
p.setPen(buildSelected ? Qt::black : Qt::white);
if (index != m_currentTargetIndex) if (index != m_currentTargetIndex)
p.setPen(QColor(0x555555)); p.setPen(QColor(0x555555));
else else
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment