]> SALOME platform Git repositories - modules/smesh.git/commitdiff
Salome HOME
rnc: EDF 1607 SMESH: Modified "Move Node" and "Add Node" dialog boxes so that only...
authorgdd <gdd>
Wed, 27 Apr 2011 13:37:08 +0000 (13:37 +0000)
committergdd <gdd>
Wed, 27 Apr 2011 13:37:08 +0000 (13:37 +0000)
src/SMESHGUI/SMESHGUI_MakeNodeAtPointDlg.cxx
src/SMESHGUI/SMESHGUI_NodesDlg.cxx

index 36aa22bb4fd43313f5691ae0b36bf9a369969db6..dc8ab322be10817922efefcd49d1151709844457 100644 (file)
@@ -159,6 +159,9 @@ QWidget* SMESHGUI_MakeNodeAtPointDlg::createMainFrame (QWidget* theParent)
   aCoordGrpLayout->addWidget(myY);
   aCoordGrpLayout->addWidget(aZLabel);
   aCoordGrpLayout->addWidget(myZ);
+  aCoordGrpLayout->setStretchFactor(myX, 1);
+  aCoordGrpLayout->setStretchFactor(myY, 1);
+  aCoordGrpLayout->setStretchFactor(myZ, 1);
 
   // node ID
 
@@ -225,6 +228,9 @@ QWidget* SMESHGUI_MakeNodeAtPointDlg::createMainFrame (QWidget* theParent)
   aCoordLayout->addWidget(myDY,           1, 3);
   aCoordLayout->addWidget(aDZLabel,       1, 4);
   aCoordLayout->addWidget(myDZ,           1, 5);
+  aCoordLayout->setColumnStretch(1, 1);
+  aCoordLayout->setColumnStretch(3, 1);
+  aCoordLayout->setColumnStretch(5, 1);
 
   myAutoSearchChkBox = new QCheckBox( tr("AUTO_SEARCH"), myNodeToMoveGrp);
   myPreviewChkBox = new QCheckBox( tr("PREVIEW"), myNodeToMoveGrp);
index 2707c85d1003f9c124549e44e50cb1fcd6893d8f..4e64d0b7a8a5d95c2d169e0d4e8bb831027a6201 100644 (file)
@@ -278,12 +278,14 @@ SMESHGUI_NodesDlg::SMESHGUI_NodesDlg( SMESHGUI* theModule ):
   SpinBox_Z = new SMESHGUI_SpinBox( GroupCoordinates );
 
   GroupCoordinatesLayout->addWidget( TextLabel_X );
-  GroupCoordinatesLayout->addWidget( SpinBox_X );
+  GroupCoordinatesLayout->addWidget( SpinBox_X ); 
   GroupCoordinatesLayout->addWidget( TextLabel_Y);
   GroupCoordinatesLayout->addWidget( SpinBox_Y );
   GroupCoordinatesLayout->addWidget( TextLabel_Z );
   GroupCoordinatesLayout->addWidget( SpinBox_Z );
-
+  GroupCoordinatesLayout->setStretch(1, 1);
+  GroupCoordinatesLayout->setStretch(3, 1);
+  GroupCoordinatesLayout->setStretch(5, 1);
 
   /***************************************************************/
   GroupGroups = new QGroupBox( tr( "SMESH_ADD_TO_GROUP" ), this );