diff options
author | Jocelyn Turcotte <jturcotte@woboq.com> | 2016-01-14 15:01:18 +0300 |
---|---|---|
committer | Jocelyn Turcotte <jturcotte@woboq.com> | 2016-01-14 15:01:18 +0300 |
commit | 19a3a10524ae40d3d4ca7871c899661c64bab4b6 (patch) | |
tree | 63ae569605f7fb25692a7521b24245986c53fe5e /src/gui/folderstatusdelegate.cpp | |
parent | 2e5f28d7c152bd79d20745ab60f700be8d9e98cc (diff) |
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.
Diffstat (limited to 'src/gui/folderstatusdelegate.cpp')
-rw-r--r-- | src/gui/folderstatusdelegate.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/folderstatusdelegate.cpp b/src/gui/folderstatusdelegate.cpp index 8c5816aff..af19fa312 100644 --- a/src/gui/folderstatusdelegate.cpp +++ b/src/gui/folderstatusdelegate.cpp @@ -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; |