Commit 8fb4a615 authored by Jens Bache-Wiig's avatar Jens Bache-Wiig
Browse files

Fixes: Minor text centering issue

Details:
We should subtract the border edge when calculating the text rect.
parent d9e98f34
......@@ -124,7 +124,7 @@ void ProgressBar::paintEvent(QPaintEvent *)
p.setPen(QColor(255, 255, 255, 70));
p.drawLine(0, 1, size().width(), 1);
QRect textRect = rect();
QRect textRect = rect().adjusted(0, 0, -1, 0);
textRect.setHeight(h+5);
p.setPen(QColor(30, 30, 30, 80));
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment