aMainLayout->addWidget( myButtonsFrame, 0 );
aMainLayout->addWidget( myStack, 1 );
- myButtonsGroup = new QButtonGroup();
+ myButtonsGroup = new QButtonGroup(this);
myButtonsGroup->setExclusive( true );
myButtonsLayout = new QHBoxLayout( myButtonsFrame );
myButtonsLayout->setMargin( 0 );
{
}
-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();
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 );