#include <ModuleBase_WidgetAction.h>
#include <ModuleBase_Tools.h>
+#include <ModuleBase_IconFactory.h>
#include <Config_WidgetAPI.h>
QString aLabelIcon = QString::fromStdString(theData->widgetIcon());
if (!aLabelIcon.isEmpty())
- myButton->setIcon(QPixmap(aLabelIcon));
+ myButton->setIcon(ModuleBase_IconFactory::loadPixmap(aLabelIcon));
else
myButton->setText(aText);
myButton->setToolTip(aToolTip);