applets/taskmanager: wrap labels anywhere

Previously we were using Text.Wrap, which means "prefer word boundaries
for wrapping, but wrap in the middle of a word if that's impossible".

In Qt 6.12, dashes and em-dashes are now more aggressively considered to
be word boundaries. There's nothing wrong per se about this change, but
it doesn't work super well for the task manager where there's a lot of
punctuation and space is very limited. So let's switch to
Text.WrapAnywhere to maximize space efficiency.

BUG: 526972
FIXED-IN: 6.8.2
This commit is contained in:
Nate Graham 2026-10-20 13:42:34 -06:00
parent 689b35bad8
commit b4c0de304f

View file

@ -624,7 +624,7 @@ PlasmaCore.ToolTipArea {
bottomMargin: taskFrame.margins.bottom
}
wrapMode: (maximumLineCount === 1) ? Text.NoWrap : Text.Wrap
wrapMode: (maximumLineCount === 1) ? Text.NoWrap : Text.WrapAnywhere
elide: Text.ElideRight
textFormat: Text.PlainText
verticalAlignment: Text.AlignVCenter