X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FModuleBase%2FModuleBase_ToolBox.cpp;h=57c7332c6f85f9822553f3bb4940c51ed4c74549;hb=3205d0f18200948632155bbe7b640bc1e482243d;hp=7f8736a250fb110f49948a9eecadd6d8778a42e5;hpb=ad180bfdd74c7f6dc79aed6c0180c458f531c1ec;p=modules%2Fshaper.git diff --git a/src/ModuleBase/ModuleBase_ToolBox.cpp b/src/ModuleBase/ModuleBase_ToolBox.cpp index 7f8736a25..57c7332c6 100644 --- a/src/ModuleBase/ModuleBase_ToolBox.cpp +++ b/src/ModuleBase/ModuleBase_ToolBox.cpp @@ -45,10 +45,12 @@ void ModuleBase_ToolBox::addItem( QWidget* thePage, const QString& theName, cons myStack->addWidget( thePage ); QToolButton* aButton = new QToolButton( myButtonsFrame ); + aButton->setFocusPolicy(Qt::StrongFocus); aButton->setCheckable( true ); aButton->setIcon( theIcon ); aButton->setIconSize( theIcon.size() ); aButton->setToolTip( theName ); + aButton->setObjectName( theName ); myButtonsGroup->addButton( aButton, anOldCount ); myButtonsLayout->insertWidget( anOldCount, aButton ); }