Salome HOME
Fix regression in unit tests
[modules/shaper.git] / src / ModuleBase / ModuleBase_ToolBox.cpp
index 7f8736a250fb110f49948a9eecadd6d8778a42e5..57c7332c6f85f9822553f3bb4940c51ed4c74549 100644 (file)
@@ -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 );
 }