Skip to content

Commit

Permalink
PartDesign: Fix broken outdated icon filenames
Browse files Browse the repository at this point in the history
This fixes some cases that were missed in commit 2834075
  • Loading branch information
davidosterberg authored and wwmayer committed Feb 12, 2021
1 parent 66417b3 commit 17af884
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/Mod/PartDesign/Gui/ViewProviderHelix.cpp
Expand Up @@ -68,9 +68,9 @@ QIcon ViewProviderHelix::getIcon(void) const {
QString str = QString::fromLatin1("PartDesign_");
auto* prim = static_cast<PartDesign::Helix*>(getObject());
if(prim->getAddSubType() == PartDesign::FeatureAddSub::Additive)
str += QString::fromLatin1("Additive_");
str += QString::fromLatin1("Additive");
else
str += QString::fromLatin1("Subtractive_");
str += QString::fromLatin1("Subtractive");

str += QString::fromLatin1("Helix.svg");
return PartDesignGui::ViewProvider::mergeGreyableOverlayIcons(Gui::BitmapFactory().pixmap(str.toStdString().c_str()));
Expand Down
4 changes: 2 additions & 2 deletions src/Mod/PartDesign/Gui/ViewProviderLoft.cpp
Expand Up @@ -169,9 +169,9 @@ QIcon ViewProviderLoft::getIcon(void) const {
QString str = QString::fromLatin1("PartDesign_");
auto* prim = static_cast<PartDesign::Loft*>(getObject());
if(prim->getAddSubType() == PartDesign::FeatureAddSub::Additive)
str += QString::fromLatin1("Additive_");
str += QString::fromLatin1("Additive");
else
str += QString::fromLatin1("Subtractive_");
str += QString::fromLatin1("Subtractive");

str += QString::fromLatin1("Loft.svg");
return PartDesignGui::ViewProvider::mergeGreyableOverlayIcons(Gui::BitmapFactory().pixmap(str.toStdString().c_str()));
Expand Down
4 changes: 2 additions & 2 deletions src/Mod/PartDesign/Gui/ViewProviderPipe.cpp
Expand Up @@ -202,9 +202,9 @@ QIcon ViewProviderPipe::getIcon(void) const {
QString str = QString::fromLatin1("PartDesign_");
auto* prim = static_cast<PartDesign::Pipe*>(getObject());
if(prim->getAddSubType() == PartDesign::FeatureAddSub::Additive)
str += QString::fromLatin1("Additive_");
str += QString::fromLatin1("Additive");
else
str += QString::fromLatin1("Subtractive_");
str += QString::fromLatin1("Subtractive");

str += QString::fromLatin1("Pipe.svg");
return PartDesignGui::ViewProvider::mergeGreyableOverlayIcons(Gui::BitmapFactory().pixmap(str.toStdString().c_str()));
Expand Down

0 comments on commit 17af884

Please sign in to comment.