D23144: Port from QFontMetrics::width() to boundingRect().width()

Kurt Hindenburg noreply at phabricator.kde.org
Fri Aug 16 17:20:25 BST 2019


hindenburg added a comment.


  In D23144#511617 <https://phabricator.kde.org/D23144#511617>, @gladhorn wrote:
  
  > See also https://kdepepo.wordpress.com/2019/08/05/about-deprecation-of-qfontmetricswidth/
  
  
  yea, for reference also in https://doc.qt.io/qt-5/qfontmetrics-obsolete.html there are notes:
  "Note that this value is not equal to boundingRect().width(); boundingRect() returns a rectangle describing the pixels this string will cover whereas width() returns the distance to where the next string should be drawn."

REPOSITORY
  R319 Konsole

REVISION DETAIL
  https://phabricator.kde.org/D23144

To: gladhorn, #konsole
Cc: hindenburg, konsole-devel, fbampaloukas, thsurrel, ngraham, maximilianocuria
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/konsole-devel/attachments/20190816/b6ec3434/attachment.html>


More information about the konsole-devel mailing list