[Pkg-owncloud-commits] [owncloud-client] 110/171: Windows: Fix the progress text being cut but a few pixels

Sandro Knauß hefee-guest at moszumanska.debian.org
Wed Feb 17 09:36:57 UTC 2016


This is an automated email from the git hooks/post-receive script.

hefee-guest pushed a commit to annotated tag upstream/2.1.1+dfsg
in repository owncloud-client.

commit 19a3a10524ae40d3d4ca7871c899661c64bab4b6
Author: Jocelyn Turcotte <jturcotte at woboq.com>
Date:   Thu Jan 14 13:01:18 2016 +0100

    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.
---
 src/gui/folderstatusdelegate.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/gui/folderstatusdelegate.cpp b/src/gui/folderstatusdelegate.cpp
index 8c5816a..af19fa3 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;

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud-client.git



More information about the Pkg-owncloud-commits mailing list