Core: Remove text shadow from progress label

This removes the last occurrence of "Text with shadow". The progress
label was not only inconsistent but also bad on light themes.

Task-number: QTCREATORBUG-15999
Change-Id: I9c17402607d413fcfa0edcf342a50575d405dc1f
Reviewed-by: Thomas Hartmann <Thomas.Hartmann@theqtcompany.com>
This commit is contained in:
Alessandro Portale
2016-07-15 12:14:29 +02:00
parent 26fa769bab
commit cc18dc3cd8

View File

@@ -265,14 +265,10 @@ void ProgressBar::paintEvent(QPaintEvent *)
QString elidedtitle = fm.elidedText(m_title, Qt::ElideRight, textSpace); QString elidedtitle = fm.elidedText(m_title, Qt::ElideRight, textSpace);
QRect textRect = rect().adjusted(3, separatorHeight - 1, -3, 0); QRect textRect = rect().adjusted(3, separatorHeight - 1, -3, 0);
textRect.setHeight(titleHeight+5); textRect.setHeight(titleHeight + 4);
p.setPen(QColor(0, 0, 0, 120));
p.drawText(textRect, alignment | Qt::AlignBottom, elidedtitle);
p.translate(0, -1);
p.setPen(creatorTheme()->color(Theme::ProgressBarTitleColor)); p.setPen(creatorTheme()->color(Theme::ProgressBarTitleColor));
p.drawText(textRect, alignment | Qt::AlignBottom, elidedtitle); p.drawText(textRect, alignment | Qt::AlignBottom, elidedtitle);
p.translate(0, 1);
} }
m_progressHeight = PROGRESSBAR_HEIGHT; m_progressHeight = PROGRESSBAR_HEIGHT;