]> SALOME platform Git repositories - modules/shaper.git/blobdiff - src/ModuleBase/ModuleBase_ToolBox.cpp
Salome HOME
refs #836: the icons of extrusion options with size 32x32
[modules/shaper.git] / src / ModuleBase / ModuleBase_ToolBox.cpp
index 0af3267b19d008747769ebfd4543156172258d97..88bb944d8e9138de571afebf79c195e9f01a86d0 100644 (file)
@@ -38,7 +38,7 @@ ModuleBase_ToolBox::~ModuleBase_ToolBox()
 {
 }
 
-void ModuleBase_ToolBox::addItem( QWidget* thePage, const QString& theName, const QIcon& theIcon )
+void ModuleBase_ToolBox::addItem( QWidget* thePage, const QString& theName, const QPixmap& theIcon )
 {
   int anOldCount = myStack->count();
 
@@ -47,6 +47,7 @@ void ModuleBase_ToolBox::addItem( QWidget* thePage, const QString& theName, cons
   QToolButton* aButton = new QToolButton( myButtonsFrame );
   aButton->setCheckable( true );
   aButton->setIcon( theIcon );
+  aButton->setIconSize( theIcon.size() );
   aButton->setToolTip( theName );
   myButtonsGroup->addButton( aButton, anOldCount );
   myButtonsLayout->insertWidget( anOldCount, aButton );