Gui: Use QStringLiteral

This commit is contained in:
Benjamin Bræstrup Sayoc
2025-02-09 18:33:01 +01:00
parent 24ac19e261
commit 8d2d0a47f4
83 changed files with 519 additions and 520 deletions

View File

@@ -1134,7 +1134,7 @@ void NotificationArea::showInNotificationArea()
// We update the message with the most recent up to maxOpenNotifications
QString msgw =
QString::fromLatin1(
QStringLiteral(
"<style>p { margin: 0 0 0 0 } td { padding: 0 15px }</style> \
<p style='white-space:normal'> \
<table> \
@@ -1149,7 +1149,7 @@ void NotificationArea::showInNotificationArea()
if (currentlynotifying > pImp->maxOpenNotifications) {
msgw +=
QString::fromLatin1(
QStringLiteral(
" \
<tr> \
<td align='left'><img width=\"16\" height=\"16\" src=':/icons/Warning.svg'></td> \
@@ -1187,7 +1187,7 @@ void NotificationArea::showInNotificationArea()
convertFromPlainText(item->getMessage(), Qt::WhiteSpaceMode::WhiteSpaceNormal);
msgw +=
QString::fromLatin1(
QStringLiteral(
" \
<tr> \
<td align='left'><img width=\"16\" height=\"16\" src='%1'></td> \
@@ -1233,7 +1233,7 @@ void NotificationArea::showInNotificationArea()
i++;
}
msgw += QString::fromLatin1("</table></p>");
msgw += QStringLiteral("</table></p>");
NotificationBox::Options options = NotificationBox::Options::RestrictAreaToReference;