From 8c01959c82fdc5b3e95c8ccf73888d0aae7bbb5e Mon Sep 17 00:00:00 2001 From: Kai Uwe Broulik Date: Mon, 14 Aug 2023 21:34:52 +0200 Subject: [PATCH] Use PlainText for various Labels Otherwise if a virtual desktop or window contains something that looks like an HTML tag, it will try to render it and blow up the layout. --- src/plugins/desktopgrid/qml/DesktopView.qml | 1 + src/plugins/overview/qml/DesktopBar.qml | 1 + src/plugins/private/qml/WindowHeapDelegate.qml | 1 + 3 files changed, 3 insertions(+) diff --git a/src/plugins/desktopgrid/qml/DesktopView.qml b/src/plugins/desktopgrid/qml/DesktopView.qml index 5cc1cd10f8..a0ea3ea57e 100644 --- a/src/plugins/desktopgrid/qml/DesktopView.qml +++ b/src/plugins/desktopgrid/qml/DesktopView.qml @@ -295,6 +295,7 @@ FocusScope { rightPadding: Kirigami.Units.smallSpacing contentItem: PC3.Label { text: desktopView.desktop.name + textFormat: Text.PlainText } background: Rectangle { color: Kirigami.Theme.backgroundColor diff --git a/src/plugins/overview/qml/DesktopBar.qml b/src/plugins/overview/qml/DesktopBar.qml index 6af470f60e..4822c873d7 100644 --- a/src/plugins/overview/qml/DesktopBar.qml +++ b/src/plugins/overview/qml/DesktopBar.qml @@ -198,6 +198,7 @@ Item { anchors.fill: parent elide: Text.ElideRight text: delegate.desktop.name + textFormat: Text.PlainText horizontalAlignment: Text.AlignHCenter verticalAlignment: Text.AlignVCenter visible: label.state === "normal" diff --git a/src/plugins/private/qml/WindowHeapDelegate.qml b/src/plugins/private/qml/WindowHeapDelegate.qml index f4dcdb48f3..b74057b4b6 100644 --- a/src/plugins/private/qml/WindowHeapDelegate.qml +++ b/src/plugins/private/qml/WindowHeapDelegate.qml @@ -172,6 +172,7 @@ Item { anchors.horizontalCenter: parent.horizontalCenter elide: Text.ElideRight text: thumb.window.caption + textFormat: Text.PlainText horizontalAlignment: Text.AlignHCenter verticalAlignment: Text.AlignVCenter }