From c2731831085b82786e6480b13747f1bd659652a7 Mon Sep 17 00:00:00 2001 From: azv Date: Wed, 20 Nov 2019 16:05:19 +0300 Subject: [PATCH] Icon for internal feature "Union". --- src/Config/Config_FeatureReader.cpp | 8 ++++---- src/PartSet/PartSet_IconFactory.cpp | 10 ++++------ 2 files changed, 8 insertions(+), 10 deletions(-) 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 -- 2.39.2