Fixes: Minor text centering issue

Details:
We should subtract the border edge when calculating the text rect.
This commit is contained in:
Jens Bache-Wiig
2009-06-05 14:16:11 +02:00
parent d9e98f343c
commit 8fb4a61509

View File

@@ -124,7 +124,7 @@ void ProgressBar::paintEvent(QPaintEvent *)
p.setPen(QColor(255, 255, 255, 70)); p.setPen(QColor(255, 255, 255, 70));
p.drawLine(0, 1, size().width(), 1); p.drawLine(0, 1, size().width(), 1);
QRect textRect = rect(); QRect textRect = rect().adjusted(0, 0, -1, 0);
textRect.setHeight(h+5); textRect.setHeight(h+5);
p.setPen(QColor(30, 30, 30, 80)); p.setPen(QColor(30, 30, 30, 80));