// Author: Vitaly Smetannikov
#include "ModuleBase_WidgetChoice.h"
-#include <ModuleBase_Tools.h>
+#include "ModuleBase_Tools.h"
+#include "ModuleBase_IconFactory.h"
#include <ModelAPI_AttributeInteger.h>
#include <ModelAPI_Data.h>
aBtn->setCheckable(true);
aBtn->setToolTip(aBtnTxt);
- QPixmap aIcon(aIconList.at(aId));
+ QPixmap aIcon = ModuleBase_IconFactory::loadPixmap(aIconList.at(aId));
aBtn->setIcon(aIcon);
aBtn->setIconSize(aIcon.size());
} else {
myLabel = new QLabel(aLabelText, this);
if (!aLabelIcon.isEmpty())
- myLabel->setPixmap(QPixmap(aLabelIcon));
+ myLabel->setPixmap(ModuleBase_IconFactory::loadPixmap(aLabelIcon));
aLayout->addWidget(myLabel);
std::string aToolstr = theData->widgetTooltip();