Skip to content
Snippets Groups Projects
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
No related branches found
No related tags found
No related merge requests found
...@@ -124,7 +124,7 @@ void ProgressBar::paintEvent(QPaintEvent *) ...@@ -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));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment