PartDesign: Use QStringLiteral

This commit is contained in:
Benjamin Bræstrup Sayoc
2025-02-09 18:19:44 +01:00
parent 85d0884f43
commit ee90eb6ebc
18 changed files with 85 additions and 85 deletions

View File

@@ -172,9 +172,9 @@ void ViewProviderTransformed::recomputeFeature(bool recompute)
rejected++;
}
QString msg = QString::fromLatin1("%1");
QString msg = QStringLiteral("%1");
if (rejected > 0) {
msg = QString::fromLatin1("<font color='orange'>%1<br/></font>\r\n%2");
msg = QStringLiteral("<font color='orange'>%1<br/></font>\r\n%2");
if (rejected == 1)
msg = msg.arg(QObject::tr("One transformed shape does not intersect the support"));
else {
@@ -184,10 +184,10 @@ void ViewProviderTransformed::recomputeFeature(bool recompute)
}
auto error = pcTransformed->getDocument()->getErrorDescription(pcTransformed);
if (error) {
msg = msg.arg(QString::fromLatin1("<font color='red'>%1<br/></font>"));
msg = msg.arg(QStringLiteral("<font color='red'>%1<br/></font>"));
msg = msg.arg(QString::fromUtf8(error));
} else {
msg = msg.arg(QString::fromLatin1("<font color='green'>%1<br/></font>"));
msg = msg.arg(QStringLiteral("<font color='green'>%1<br/></font>"));
msg = msg.arg(QObject::tr("Transformation succeeded"));
}
diagMessage = msg;