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.
This commit is contained in:
Kai Uwe Broulik 2023-08-14 21:34:52 +02:00
parent 8d7e5c726e
commit 8c01959c82
3 changed files with 3 additions and 0 deletions

View file

@ -295,6 +295,7 @@ FocusScope {
rightPadding: Kirigami.Units.smallSpacing rightPadding: Kirigami.Units.smallSpacing
contentItem: PC3.Label { contentItem: PC3.Label {
text: desktopView.desktop.name text: desktopView.desktop.name
textFormat: Text.PlainText
} }
background: Rectangle { background: Rectangle {
color: Kirigami.Theme.backgroundColor color: Kirigami.Theme.backgroundColor

View file

@ -198,6 +198,7 @@ Item {
anchors.fill: parent anchors.fill: parent
elide: Text.ElideRight elide: Text.ElideRight
text: delegate.desktop.name text: delegate.desktop.name
textFormat: Text.PlainText
horizontalAlignment: Text.AlignHCenter horizontalAlignment: Text.AlignHCenter
verticalAlignment: Text.AlignVCenter verticalAlignment: Text.AlignVCenter
visible: label.state === "normal" visible: label.state === "normal"

View file

@ -172,6 +172,7 @@ Item {
anchors.horizontalCenter: parent.horizontalCenter anchors.horizontalCenter: parent.horizontalCenter
elide: Text.ElideRight elide: Text.ElideRight
text: thumb.window.caption text: thumb.window.caption
textFormat: Text.PlainText
horizontalAlignment: Text.AlignHCenter horizontalAlignment: Text.AlignHCenter
verticalAlignment: Text.AlignVCenter verticalAlignment: Text.AlignVCenter
} }