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