X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FModuleBase%2FModuleBase_WidgetChoice.cpp;h=5797e7cc8de201b0882d34a9a37610fe44bdf8cd;hb=622ac935fd1d8a5bc282ee127666a3e9d1954713;hp=f8b4ff5167d9c56c51f524fbf5e51c53e2c9560b;hpb=7ec8afdf50f8400316e31bdad33fa9b337210833;p=modules%2Fshaper.git diff --git a/src/ModuleBase/ModuleBase_WidgetChoice.cpp b/src/ModuleBase/ModuleBase_WidgetChoice.cpp index f8b4ff516..5797e7cc8 100644 --- a/src/ModuleBase/ModuleBase_WidgetChoice.cpp +++ b/src/ModuleBase/ModuleBase_WidgetChoice.cpp @@ -5,7 +5,8 @@ // Author: Vitaly Smetannikov #include "ModuleBase_WidgetChoice.h" -#include +#include "ModuleBase_Tools.h" +#include "ModuleBase_IconFactory.h" #include #include @@ -62,7 +63,7 @@ ModuleBase_WidgetChoice::ModuleBase_WidgetChoice(QWidget* theParent, 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()); @@ -83,7 +84,7 @@ ModuleBase_WidgetChoice::ModuleBase_WidgetChoice(QWidget* theParent, } 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(); @@ -104,7 +105,7 @@ ModuleBase_WidgetChoice::~ModuleBase_WidgetChoice() { } -bool ModuleBase_WidgetChoice::storeValueCustom() const +bool ModuleBase_WidgetChoice::storeValueCustom() { DataPtr aData = myFeature->data(); std::shared_ptr aIntAttr = aData->integer(attributeID());