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

@@ -171,14 +171,14 @@ void ViewProviderPipe::highlightReferences(Part::Feature* base, const std::vecto
}
QIcon ViewProviderPipe::getIcon() const {
QString str = QString::fromLatin1("PartDesign_");
QString str = QStringLiteral("PartDesign_");
auto* prim = getObject<PartDesign::Pipe>();
if(prim->getAddSubType() == PartDesign::FeatureAddSub::Additive)
str += QString::fromLatin1("Additive");
str += QStringLiteral("Additive");
else
str += QString::fromLatin1("Subtractive");
str += QStringLiteral("Subtractive");
str += QString::fromLatin1("Pipe.svg");
str += QStringLiteral("Pipe.svg");
return PartDesignGui::ViewProvider::mergeGreyableOverlayIcons(Gui::BitmapFactory().pixmap(str.toStdString().c_str()));
}