mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-24 22:15:57 +03:00
Windows: Fix the progress text being cut but a few pixels
QFontMetrics::boundingRect doesn't return the right size for this font size for some reason, while it works well if we remove the smaller point size adjustment for the progress font. To avoid having to debug the font system in Qt just increase the existing +2px adjustment to +5px so that it renders fine.
This commit is contained in:
parent
2e5f28d7c1
commit
19a3a10524
1 changed files with 1 additions and 1 deletions
|
@ -295,7 +295,7 @@ void FolderStatusDelegate::paint(QPainter *painter, const QStyleOptionViewItem &
|
|||
|
||||
// Sizes-Text
|
||||
QRect octetRect = progressFm.boundingRect(QRect(), 0, overallString );
|
||||
int progressTextWidth = octetRect.width() + 2;
|
||||
int progressTextWidth = octetRect.width() + 5;
|
||||
|
||||
// Overall Progress Bar.
|
||||
QRect pBRect;
|
||||
|
|
Loading…
Reference in a new issue