QString::fromAscii() is obsolete in Qt5. Replace it with fromLatin1().

This change is Qt4/Qt5 neutral.
This commit is contained in:
Mateusz Skowroński
2016-04-14 19:37:12 +02:00
committed by wmayer
parent 596155061f
commit a8d37dabbe
28 changed files with 104 additions and 104 deletions

View File

@@ -190,14 +190,14 @@ void ViewProviderLoft::highlightReferences(const bool on, bool auxillery)
}
QIcon ViewProviderLoft::getIcon(void) const {
QString str = QString::fromAscii("PartDesign_");
QString str = QString::fromLatin1("PartDesign_");
auto* prim = static_cast<PartDesign::Loft*>(getObject());
if(prim->getAddSubType() == PartDesign::FeatureAddSub::Additive)
str += QString::fromAscii("Additive_");
str += QString::fromLatin1("Additive_");
else
str += QString::fromAscii("Subtractive_");
str += QString::fromLatin1("Subtractive_");
str += QString::fromAscii("Loft.svg");
str += QString::fromLatin1("Loft.svg");
return Gui::BitmapFactory().pixmap(str.toStdString().c_str());
}