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
Show tool tip of shape multi selector. Remove an article.
[modules/shaper.git]
/
src
/
ModuleBase
/
ModuleBase_WidgetChoice.cpp
diff --git
a/src/ModuleBase/ModuleBase_WidgetChoice.cpp
b/src/ModuleBase/ModuleBase_WidgetChoice.cpp
index ea35a3f827b057d204bfb577ff6acbb33e0ac506..d837c4f38b10efcf2ef81d38730bbaa74ec291db 100644
(file)
--- a/
src/ModuleBase/ModuleBase_WidgetChoice.cpp
+++ b/
src/ModuleBase/ModuleBase_WidgetChoice.cpp
@@
-56,6
+56,7
@@
ModuleBase_WidgetChoice::ModuleBase_WidgetChoice(QWidget* theParent,
int aId = 0;
foreach(QString aBtnTxt, aList) {
QToolButton* aBtn = new QToolButton(aGroupBox);
int aId = 0;
foreach(QString aBtnTxt, aList) {
QToolButton* aBtn = new QToolButton(aGroupBox);
+ aBtn->setFocusPolicy(Qt::StrongFocus);
aBtn->setCheckable(true);
aBtn->setToolTip(aBtnTxt);
aBtn->setCheckable(true);
aBtn->setToolTip(aBtnTxt);
@@
-139,7
+140,7
@@
bool ModuleBase_WidgetChoice::restoreValueCustom()
bool ModuleBase_WidgetChoice::focusTo()
{
if (myCombo)
bool ModuleBase_WidgetChoice::focusTo()
{
if (myCombo)
-
myCombo->setFocus(
);
+
ModuleBase_Tools::setFocus(myCombo, "ModuleBase_WidgetChoice::focusTo()"
);
else
return false;
return true;
else
return false;
return true;