D26636: [Widget Explorer] Work around bad kerning
Filip Fila
noreply at phabricator.kde.org
Mon Jan 13 18:17:24 GMT 2020
filipf created this revision.
Herald added a project: Plasma.
Herald added a subscriber: plasma-devel.
filipf requested review of this revision.
REVISION SUMMARY
One way that https://bugreports.qt.io/browse/QTBUG-49646 manifests itself is when we have single line labels centered using "horizontalAlignment: Text.AlignHCenter".
This patch works around the kerning bug using a different centering method: using the layout's alignment and setting the maximum width.
Since the workaround doesn't work when there is more than 1 line of text AND since kerning is OK when lineCount > 1, we revert back to the old method in that situation.
REPOSITORY
R119 Plasma Desktop
BRANCH
widget-explorer-kerning-fix (branched from master)
REVISION DETAIL
https://phabricator.kde.org/D26636
AFFECTED FILES
desktoppackage/contents/explorer/AppletDelegate.qml
To: filipf
Cc: 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/plasma-devel/attachments/20200113/f9b12b40/attachment.html>
More information about the Plasma-devel
mailing list