KateModeMenuList: improve word wrap

Authored by nibags on Nov 1 2019, 9:02 AM.

Description

KateModeMenuList: improve word wrap

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.

Reviewers: KTextEditor, cullmann, dhaumann

Reviewed By: KTextEditor, dhaumann

Subscribers: kwrite-devel, kde-frameworks-devel

Tags: Kate, Frameworks

Differential Revision: https://phabricator.kde.org/D24983

Details

Committed
nibagsNov 1 2019, 10:22 AM
Reviewer
KTextEditor
Differential Revision
D24983: KateModeMenuList: improve word wrap
Parents
R39:911d451fb3d3: SVN_SILENT made messages (.desktop file) - always resolve ours
Branches
Unknown
Tags
Unknown