Salome HOME
projects
/
modules
/
shaper.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
WidgetMultiSelector preparation to use ModelAPI_AttributeRefAttrList.
[modules/shaper.git]
/
src
/
ModuleBase
/
ModuleBase_ToolBox.cpp
diff --git
a/src/ModuleBase/ModuleBase_ToolBox.cpp
b/src/ModuleBase/ModuleBase_ToolBox.cpp
index 0af3267b19d008747769ebfd4543156172258d97..57c7332c6f85f9822553f3bb4940c51ed4c74549 100644
(file)
--- a/
src/ModuleBase/ModuleBase_ToolBox.cpp
+++ b/
src/ModuleBase/ModuleBase_ToolBox.cpp
@@
-23,7
+23,7
@@
ModuleBase_ToolBox::ModuleBase_ToolBox( QWidget* theParent )
aMainLayout->addWidget( myButtonsFrame, 0 );
aMainLayout->addWidget( myStack, 1 );
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 );
myButtonsGroup->setExclusive( true );
myButtonsLayout = new QHBoxLayout( myButtonsFrame );
myButtonsLayout->setMargin( 0 );
@@
-38,16
+38,19
@@
ModuleBase_ToolBox::~ModuleBase_ToolBox()
{
}
{
}
-void ModuleBase_ToolBox::addItem( QWidget* thePage, const QString& theName, const Q
Icon
& theIcon )
+void ModuleBase_ToolBox::addItem( QWidget* thePage, const QString& theName, const Q
Pixmap
& theIcon )
{
int anOldCount = myStack->count();
myStack->addWidget( thePage );
QToolButton* aButton = new QToolButton( myButtonsFrame );
{
int anOldCount = myStack->count();
myStack->addWidget( thePage );
QToolButton* aButton = new QToolButton( myButtonsFrame );
+ aButton->setFocusPolicy(Qt::StrongFocus);
aButton->setCheckable( true );
aButton->setIcon( theIcon );
aButton->setCheckable( true );
aButton->setIcon( theIcon );
+ aButton->setIconSize( theIcon.size() );
aButton->setToolTip( theName );
aButton->setToolTip( theName );
+ aButton->setObjectName( theName );
myButtonsGroup->addButton( aButton, anOldCount );
myButtonsLayout->insertWidget( anOldCount, aButton );
}
myButtonsGroup->addButton( aButton, anOldCount );
myButtonsLayout->insertWidget( anOldCount, aButton );
}