From cc18dc3cd8ecad145ed5456ddaeae7062f271981 Mon Sep 17 00:00:00 2001 From: Alessandro Portale Date: Fri, 15 Jul 2016 12:14:29 +0200 Subject: [PATCH] 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 --- src/plugins/coreplugin/progressmanager/progressbar.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/plugins/coreplugin/progressmanager/progressbar.cpp b/src/plugins/coreplugin/progressmanager/progressbar.cpp index 751e221fd7f..b1c9930086b 100644 --- a/src/plugins/coreplugin/progressmanager/progressbar.cpp +++ b/src/plugins/coreplugin/progressmanager/progressbar.cpp @@ -265,14 +265,10 @@ void ProgressBar::paintEvent(QPaintEvent *) QString elidedtitle = fm.elidedText(m_title, Qt::ElideRight, textSpace); 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.drawText(textRect, alignment | Qt::AlignBottom, elidedtitle); - p.translate(0, 1); } m_progressHeight = PROGRESSBAR_HEIGHT;