PartDesign: Use QStringLiteral
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user