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

@@ -109,22 +109,22 @@ void ViewProviderDatum::attach(App::DocumentObject *obj)
// TODO remove this field (2015-09-08, Fat-Zer)
App::DocumentObject* o = getObject();
if (o->is<PartDesign::Plane>()) {
datumType = QString::fromLatin1("Plane");
datumType = QStringLiteral("Plane");
datumText = QObject::tr("Plane");
datumMenuText = tr("Datum Plane parameters");
}
else if (o->is<PartDesign::Line>()) {
datumType = QString::fromLatin1("Line");
datumType = QStringLiteral("Line");
datumText = QObject::tr("Line");
datumMenuText = tr("Datum Line parameters");
}
else if (o->is<PartDesign::Point>()) {
datumType = QString::fromLatin1("Point");
datumType = QStringLiteral("Point");
datumText = QObject::tr("Point");
datumMenuText = tr("Datum Point parameters");
}
else if (o->is<PartDesign::CoordinateSystem>()) {
datumType = QString::fromLatin1("CoordinateSystem");
datumType = QStringLiteral("CoordinateSystem");
datumText = QObject::tr("Coordinate System");
datumMenuText = tr("Local Coordinate System parameters");
}