]> SALOME platform Git repositories - modules/shaper.git/blobdiff - src/ModuleBase/ModuleBase_WidgetAction.cpp
Salome HOME
Correction of Boolean crash
[modules/shaper.git] / src / ModuleBase / ModuleBase_WidgetAction.cpp
index 3d9c616ff29a36e9b52fa4bc2e0f1fc6b083c1c5..84b5ceb649311f270492eb98371decc8fec1b311 100755 (executable)
@@ -6,6 +6,7 @@
 
 #include <ModuleBase_WidgetAction.h>
 #include <ModuleBase_Tools.h>
+#include <ModuleBase_IconFactory.h>
 
 #include <Config_WidgetAPI.h>
 
@@ -35,7 +36,7 @@ ModuleBase_WidgetAction::ModuleBase_WidgetAction(QWidget* theParent,
 
   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);