forked from qt-creator/qt-creator
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:
@@ -231,7 +231,7 @@ void ProgressBar::paintEvent(QPaintEvent *)
|
|||||||
// draw outer rect
|
// draw outer rect
|
||||||
QRect rect(INDENT - 1, h+6, size().width()-2*INDENT + 1, m_progressHeight-1);
|
QRect rect(INDENT - 1, h+6, size().width()-2*INDENT + 1, m_progressHeight-1);
|
||||||
p.setPen(Utils::StyleHelper::panelTextColor());
|
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
|
// draw inner rect
|
||||||
QColor c = Utils::StyleHelper::panelTextColor();
|
QColor c = Utils::StyleHelper::panelTextColor();
|
||||||
|
|||||||
Reference in New Issue
Block a user