Fix progress bar rendering

Fixes the border image drawing, which probably is only visible when
making the progress bars longer.

Change-Id: Ia4692bcb4a4b86b7ca610c039046367cc5d2bdfe
Reviewed-by: Eike Ziller <eike.ziller@digia.com>
This commit is contained in:
Eike Ziller
2013-03-25 14:15:34 +01:00
parent 01d4fe8520
commit 7cff3f952c

View File

@@ -231,7 +231,7 @@ void ProgressBar::paintEvent(QPaintEvent *)
// draw outer rect
QRect rect(INDENT - 1, h+6, size().width()-2*INDENT + 1, m_progressHeight-1);
p.setPen(Utils::StyleHelper::panelTextColor());
Utils::StyleHelper::drawCornerImage(bar, &p, rect, 2, 2, 2, 2);
Utils::StyleHelper::drawCornerImage(bar, &p, rect, 4, 2, 3, 2);
// draw inner rect
QColor c = Utils::StyleHelper::panelTextColor();