Salome HOME
Issue '23049: [CEA 1475] Increase the size of some dialog boxes': fix first part.
authorrnv <rnv@opencascade.com>
Mon, 20 Apr 2015 13:27:09 +0000 (16:27 +0300)
committerrnv <rnv@opencascade.com>
Mon, 20 Apr 2015 13:27:09 +0000 (16:27 +0300)
src/StdMeshersGUI/StdMeshersGUI_ObjectReferenceParamWdg.cxx
src/StdMeshersGUI/StdMeshersGUI_ObjectReferenceParamWdg.h

index db42e8484dc94ae13c50367d08d2a582e3f7c223..649d1e5ab774d51dc39c7f619adfc6f24ad873de 100644 (file)
 //================================================================================
 
 StdMeshersGUI_ObjectReferenceParamWdg::StdMeshersGUI_ObjectReferenceParamWdg
-( SUIT_SelectionFilter* f, QWidget* parent, bool multiSelection, bool stretch )
+( SUIT_SelectionFilter* f, QWidget* parent, bool multiSelection 
+  /*, bool stretch */)
   : QWidget( parent ), myMultiSelection( multiSelection )
 {
   myFilter = f;
-  myStretchActivated = stretch;
+  // myStretchActivated = stretch;
   init();
 }
 
@@ -123,12 +124,13 @@ void StdMeshersGUI_ObjectReferenceParamWdg::init()
   myObjNameLineEdit = new QLineEdit(this);
   myObjNameLineEdit->setReadOnly(true);
   myObjNameLineEdit->setStyleSheet(myEmptyStyleSheet);
+  myObjNameLineEdit->setMinimumWidth(200);
 
   aHBox->addWidget( mySelButton );
   aHBox->addWidget( myObjNameLineEdit );
-  if (myStretchActivated){
-    aHBox->addStretch();
-  }
+  //if (myStretchActivated){
+  //  aHBox->addStretch();
+  //}
 
   connect( mySelButton, SIGNAL(clicked()), SLOT(activateSelection()));
 }
index e2ff97b43cda8b568a32238df05ee4eb9856bb01..63eb5de65f055e3a65d806d0bf367d6952fb65cd 100644 (file)
@@ -56,8 +56,8 @@ class STDMESHERSGUI_EXPORT StdMeshersGUI_ObjectReferenceParamWdg : public QWidge
 public:
   StdMeshersGUI_ObjectReferenceParamWdg( SUIT_SelectionFilter* filter, 
                                          QWidget*              parent,
-                                         bool                  multiSelection=false,
-                                         bool                  stretch=true);
+                                         bool                  multiSelection=false
+                                        /* ,bool                  stretch=true*/);
   StdMeshersGUI_ObjectReferenceParamWdg( SMESH::MeshObjectType objType,
                                          QWidget*       parent,
                                          bool           multiSelection=false);