<table><tr><td style="">ndavis created this revision.<br />ndavis added reviewers: Breeze, Plasma.<br />Herald added a project: Plasma.<br />Herald added a subscriber: plasma-devel.<br />ndavis requested review of this revision.
</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: #F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: inline-block; border: 1px solid rgba(71,87,120,.2);" href="https://phabricator.kde.org/D26270">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>According to an article by <a href="https://phabricator.kde.org/p/cfeck/" style="
border-color: #f1f7ff;
color: #19558d;
background-color: #f1f7ff;
border: 1px solid transparent;
border-radius: 3px;
font-weight: bold;
padding: 0 4px;">@cfeck</a> [1], QFontMetrics::width() gave the horizontal advance, which doesn't necessarily include every pixel that the text might use.<br />
He suggested that boundingRect().width() might be what most people actually want.</p>
<ul class="remarkup-list">
<li class="remarkup-list-item">[1] <a href="https://kdepepo.wordpress.com/2019/08/05/about-deprecation-of-qfontmetricswidth/" class="remarkup-link" target="_blank" rel="noreferrer">https://kdepepo.wordpress.com/2019/08/05/about-deprecation-of-qfontmetricswidth/</a></li>
</ul></div></div><br /><div><strong>REPOSITORY</strong><div><div>R31 Breeze</div></div></div><br /><div><strong>BRANCH</strong><div><div>replace-deprecated-3 (branched from master)</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D26270">https://phabricator.kde.org/D26270</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>kstyle/breezestyle.cpp</div></div></div><br /><div><strong>To: </strong>ndavis, Breeze, Plasma<br /><strong>Cc: </strong>cfeck, plasma-devel, LeGast00n, The-Feren-OS-Dev, jraleigh, zachus, fbampaloukas, GB_2, ragreen, ZrenBot, ngraham, alexeymin, himcesjf, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, apol, ahiemstra, mart<br /></div>