[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    [osx-integration/qt590-r2l] src/qmacstyle: small font metrics tweak (ineffective)
From:       R.J.V. Bertin <null () kde ! org>
Date:       2017-07-01 21:26:28
Message-ID: E1dRPuO-00074T-Mc () code ! kde ! org
[Download RAW message or body]

Git commit 78256d0fc1b9c33cd3001604c39919e7a3f69a6f by R.J.V. Bertin.
Committed on 01/07/2017 at 21:12.
Pushed by rjvbb into branch 'qt590-r2l'.

small font metrics tweak (ineffective)

Committed from host : Portia.local

M  +1    -1    src/qmacstyle/qmacstyle_mac.mm

https://commits.kde.org/osx-integration/78256d0fc1b9c33cd3001604c39919e7a3f=
69a6f

diff --git a/src/qmacstyle/qmacstyle_mac.mm b/src/qmacstyle/qmacstyle_mac.mm
index 3a40d8a..2a91f36 100644
--- a/src/qmacstyle/qmacstyle_mac.mm
+++ b/src/qmacstyle/qmacstyle_mac.mm
@@ -4623,7 +4623,7 @@ void QMacStyle::drawControl(ControlElement ce, const =
QStyleOption *opt, QPainter
                         p->drawText(xpos, yPos, contentRect.width() - xm -=
 tabwidth + 1,
                                 contentRect.height(), text_flags | Qt::Ali=
gnLeft, s);
                     } else {
-                        p->drawText(xpos - p->fontMetrics().width(s), yPos=
, contentRect.width() - xm - tabwidth + 1,
+                        p->drawText(xpos - QFontMetrics(myFont).width(s), =
yPos, contentRect.width() - xm - tabwidth + 1,
                                 contentRect.height(), text_flags | Qt::Ali=
gnLeft, s);
                     }
                 }

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic