From c049d5afb1881b33052593c2d6af991507d10d32 Mon Sep 17 00:00:00 2001 From: Vlad Zahorodnii Date: Sat, 25 Mar 2023 20:57:36 +0200 Subject: [PATCH] tabbox: Provide raw window caption Use "textFormat: Text.PlainText" in window switchers instead. --- src/tabbox/clientmodel.cpp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/tabbox/clientmodel.cpp b/src/tabbox/clientmodel.cpp index f6b142dda9..3a728d9595 100644 --- a/src/tabbox/clientmodel.cpp +++ b/src/tabbox/clientmodel.cpp @@ -14,7 +14,6 @@ #include #include -#include // TODO: remove with Qt 5, only for HTML escaping the caption #include #include @@ -58,11 +57,7 @@ QVariant ClientModel::data(const QModelIndex &index, int role) const return i18nc("Special entry in alt+tab list for minimizing all windows", "Show Desktop"); } - QString caption = client->caption(); - if (Qt::mightBeRichText(caption)) { - caption = caption.toHtmlEscaped(); - } - return caption; + return client->caption(); } case ClientRole: return QVariant::fromValue(client);