Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/desktop.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJocelyn Turcotte <jturcotte@woboq.com>2016-01-14 15:01:18 +0300
committerJocelyn Turcotte <jturcotte@woboq.com>2016-01-14 15:01:18 +0300
commit19a3a10524ae40d3d4ca7871c899661c64bab4b6 (patch)
tree63ae569605f7fb25692a7521b24245986c53fe5e /src/gui/folderstatusdelegate.cpp
parent2e5f28d7c152bd79d20745ab60f700be8d9e98cc (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.cpp2
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;