From: gdd Date: Wed, 27 Apr 2011 13:37:08 +0000 (+0000) Subject: rnc: EDF 1607 SMESH: Modified "Move Node" and "Add Node" dialog boxes so that only... X-Git-Tag: V6_3_0b1~24 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=2db2c3ab904971a20abb8ecab943e4076d67d954;p=modules%2Fsmesh.git rnc: EDF 1607 SMESH: Modified "Move Node" and "Add Node" dialog boxes so that only SpinBoxes are expanded when resizing the window. --- diff --git a/src/SMESHGUI/SMESHGUI_MakeNodeAtPointDlg.cxx b/src/SMESHGUI/SMESHGUI_MakeNodeAtPointDlg.cxx index 36aa22bb4..dc8ab322b 100644 --- a/src/SMESHGUI/SMESHGUI_MakeNodeAtPointDlg.cxx +++ b/src/SMESHGUI/SMESHGUI_MakeNodeAtPointDlg.cxx @@ -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); diff --git a/src/SMESHGUI/SMESHGUI_NodesDlg.cxx b/src/SMESHGUI/SMESHGUI_NodesDlg.cxx index 2707c85d1..4e64d0b7a 100644 --- a/src/SMESHGUI/SMESHGUI_NodesDlg.cxx +++ b/src/SMESHGUI/SMESHGUI_NodesDlg.cxx @@ -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 );