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