D24983: KateModeMenuList: improve word wrap
Nibaldo González
noreply at phabricator.kde.org
Sun Oct 27 11:18:25 GMT 2019
nibags created this revision.
nibags added reviewers: KTextEditor, cullmann, dhaumann.
Herald added projects: Kate, Frameworks.
Herald added subscribers: kde-frameworks-devel, kwrite-devel.
nibags requested review of this revision.
REVISION SUMMARY
- Use `QFontMetrics::horizontalAdvance(text)` instead of `QFontMetrics::boundingRect(text).width()`, since it obtains a more precise value over the width of a text.
- Allow word wrap in section titles.
REPOSITORY
R39 KTextEditor
BRANCH
improve-word-wrap
REVISION DETAIL
https://phabricator.kde.org/D24983
AFFECTED FILES
src/mode/katemodemenulist.cpp
src/mode/katemodemenulist.h
To: nibags, #ktexteditor, cullmann, dhaumann
Cc: kwrite-devel, kde-frameworks-devel, LeGast00n, GB_2, domson, michaelh, ngraham, bruns, demsking, cullmann, sars, dhaumann
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kwrite-devel/attachments/20191027/69f809b9/attachment-0001.html>
More information about the KWrite-Devel
mailing list