Salome HOME
Fix compilation on Linux
[modules/shaper.git] / src / ModuleBase / ModuleBase_ActionInfo.cpp
index 9089ecaf020b43c4a38f5b63556d4379530786a9..7966f3461b86b5ee28f88a46406507dbf4e35b3a 100644 (file)
@@ -1,3 +1,4 @@
+// TEMPORARY COMMIT
 /*
  * ModuleBase_ActionInfo.cpp
  *
@@ -6,6 +7,7 @@
  */
 
 #include <ModuleBase_ActionInfo.h>
+#include <ModuleBase_IconFactory.h>
 
 ModuleBase_ActionInfo::ModuleBase_ActionInfo()
 {
@@ -53,7 +55,7 @@ void ModuleBase_ActionInfo::initFrom(std::shared_ptr<Config_FeatureMessage> theM
   id = QString::fromStdString(theMessage->id());
   iconFile = QString::fromStdString(theMessage->icon());
   if (!iconFile.isEmpty()) {
-    icon = QIcon(iconFile);
+    icon = ModuleBase_IconFactory::loadIcon(iconFile);
   }
   text = QString::fromStdString(theMessage->text());
   toolTip = QString::fromStdString(theMessage->tooltip());
@@ -63,6 +65,8 @@ void ModuleBase_ActionInfo::initFrom(std::shared_ptr<Config_FeatureMessage> theM
   }
   // If feature requires PropertyPannel for input, it should be checkable
   checkable = theMessage->isUseInput();
+  // If Feature requires modal Dialog box for input
+  modal = theMessage->isModal();
 }
 
 QAction* ModuleBase_ActionInfo::makeAction(QObject* theParent)