PartDesign: Use QStringLiteral

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

View File

@@ -120,8 +120,8 @@ TaskFeaturePick::TaskFeaturePick(std::vector<App::DocumentObject*>& objects,
bool attached = false;
for (; statusIt != status.end(); ++statusIt, ++objIt) {
QListWidgetItem* item = new QListWidgetItem(
QString::fromLatin1("%1 (%2)").arg(QString::fromUtf8((*objIt)->Label.getValue()),
getFeatureStatusString(*statusIt)));
QStringLiteral("%1 (%2)").arg(QString::fromUtf8((*objIt)->Label.getValue()),
getFeatureStatusString(*statusIt)));
item->setData(Qt::UserRole, QString::fromLatin1((*objIt)->getNameInDocument()));
ui->listWidget->addItem(item);