https://bugs.kde.org/show_bug.cgi?id=526972

--- Comment #4 from Nate Graham <[email protected]> ---
I can confirm that this diff restores the old behavior:

diff --git applets/taskmanager/qml/Task.qml applets/taskmanager/qml/Task.qml
index 1902cdc111..6506fca5ee 100644
--- applets/taskmanager/qml/Task.qml
+++ applets/taskmanager/qml/Task.qml
@@ -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

Which means that the behavior of `Text.Wrap` changes in Qt 6.12. It seems to
*generally* be still working. This small test program work as expected when I
resize the window to be very small:

import QtQuick
import QtQuick.Controls as QQC
import QtQuick.Layouts

Item {
    width: 500
    height: 500

    Rectangle {
        color: "lightblue"
        anchors.centerIn: parent
        width: parent.width / 2
        height: parent.height / 2

        QQC.Label {
            anchors.fill: parent
            text: "This exceptionally wordy label contains voluminous
verbiage!"
            wrapMode: Text.Wrap
        }
    }
}

I think I see what changed: dashes and em-dashes are now more aggressively
considered to be word boundaries. This doesn't seem wrong per se, so I think
the best way of adapting here is to use the "wrap anywhere" mode explicitly.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to