Salome HOME
projects
/
modules
/
smesh.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
rnc : Made the AddStretch operation optional (previous behaviour is kept)
[modules/smesh.git]
/
src
/
StdMeshersGUI
/
StdMeshersGUI_ObjectReferenceParamWdg.cxx
diff --git
a/src/StdMeshersGUI/StdMeshersGUI_ObjectReferenceParamWdg.cxx
b/src/StdMeshersGUI/StdMeshersGUI_ObjectReferenceParamWdg.cxx
index 482fb62994d30a3d985060d0509be9d225c88a88..2d5b87f55260fa1b7edb2bbb86081b153e4bb0e8 100644
(file)
--- a/
src/StdMeshersGUI/StdMeshersGUI_ObjectReferenceParamWdg.cxx
+++ b/
src/StdMeshersGUI/StdMeshersGUI_ObjectReferenceParamWdg.cxx
@@
-56,10
+56,11
@@
//================================================================================
StdMeshersGUI_ObjectReferenceParamWdg::StdMeshersGUI_ObjectReferenceParamWdg
//================================================================================
StdMeshersGUI_ObjectReferenceParamWdg::StdMeshersGUI_ObjectReferenceParamWdg
-( SUIT_SelectionFilter* f, QWidget* parent, bool multiSelection)
+( SUIT_SelectionFilter* f, QWidget* parent, bool multiSelection
, bool stretch
)
: QWidget( parent ), myMultiSelection( multiSelection )
{
myFilter = f;
: QWidget( parent ), myMultiSelection( multiSelection )
{
myFilter = f;
+ myStretchActivated = stretch;
init();
}
init();
}
@@
-126,7
+127,9
@@
void StdMeshersGUI_ObjectReferenceParamWdg::init()
aHBox->addWidget( mySelButton );
aHBox->addWidget( myObjNameLineEdit );
aHBox->addWidget( mySelButton );
aHBox->addWidget( myObjNameLineEdit );
- aHBox->addStretch();
+ if (myStretchActivated){
+ aHBox->addStretch();
+ }
connect( mySelButton, SIGNAL(clicked()), SLOT(activateSelection()));
}
connect( mySelButton, SIGNAL(clicked()), SLOT(activateSelection()));
}