Word-wrap KMessageWidget text

Authored by ngraham on Feb 12 2019, 7:21 PM.

Description

Word-wrap KMessageWidget text

Summary:
Word-wrap KMessageWidget text to prevent the window from being widened
when the text is very long.

CCBUG: 404232

Only CCBUG: because word wrap only works where QLabel detects a word boundary;
it will not wrap a string with no spaces or other word boundaries (e.g.
"aaaaaaaaaaaaaaaaaaaa...")

Test Plan:

  • Create a new text file with a 300-character name that has spaces in it
  • In the KMessageWidget's error message, the file name is wrapped at the word

boundaries

Reviewers: Dolphin, Frameworks, cfeck, elvisangelaccio

Reviewed By: Dolphin, cfeck, elvisangelaccio

Subscribers: elvisangelaccio, cfeck, kfm-devel

Tags: Dolphin

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

Details

Committed
ngrahamFeb 17 2019, 9:07 PM
Reviewer
Dolphin
Differential Revision
D18968: Word-wrap KMessageWidget text
Parents
R318:36da6c7e3293: GIT_SILENT made messages (after extraction)
Branches
Unknown
Tags
Unknown