From: azv Date: Wed, 20 Nov 2019 13:05:19 +0000 (+0300) Subject: Icon for internal feature "Union". X-Git-Tag: V9_5_0a1~166^2~3 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=c2731831085b82786e6480b13747f1bd659652a7;p=modules%2Fshaper.git Icon for internal feature "Union". --- diff --git a/src/Config/Config_FeatureReader.cpp b/src/Config/Config_FeatureReader.cpp index 7d93e060e..d983afb08 100644 --- a/src/Config/Config_FeatureReader.cpp +++ b/src/Config/Config_FeatureReader.cpp @@ -179,10 +179,10 @@ void Config_FeatureReader::fillFeature(xmlNodePtr theFeatureNode, if (!aHelpFile.empty()) outFeatureMessage->setHelpFileName(myLibraryName + "/" + aHelpFile); - if (isInternal) { - //Internal feature has no visual representation. - return; - } + //if (isInternal) { + // //Internal feature has no visual representation. + // return; + //} std::string aText = Config_Translator::translate(anId, getProperty(theFeatureNode, FEATURE_TEXT)); outFeatureMessage->setText(aText); diff --git a/src/PartSet/PartSet_IconFactory.cpp b/src/PartSet/PartSet_IconFactory.cpp index abe6aa025..67c385b96 100644 --- a/src/PartSet/PartSet_IconFactory.cpp +++ b/src/PartSet/PartSet_IconFactory.cpp @@ -163,11 +163,9 @@ void PartSet_IconFactory::processEvent(const std::shared_ptr& th Events_Loop::loop()->eventByName(Config_FeatureMessage::GUI_EVENT())) { std::shared_ptr aFeatureMsg = std::dynamic_pointer_cast(theMessage); - if (!aFeatureMsg->isInternal()) { - ActionInfo aFeatureInfo; - aFeatureInfo.initFrom(aFeatureMsg); - // Remember features icons - myIcons[QString::fromStdString(aFeatureMsg->id())] = aFeatureInfo.iconFile; - } + ActionInfo aFeatureInfo; + aFeatureInfo.initFrom(aFeatureMsg); + // Remember features icons + myIcons[QString::fromStdString(aFeatureMsg->id())] = aFeatureInfo.iconFile; } } \ No newline at end of file