*/
#include <ModuleBase_ActionInfo.h>
+#include <ModuleBase_IconFactory.h>
ModuleBase_ActionInfo::ModuleBase_ActionInfo()
{
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());
}
// 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)