Fix of IPAL19633 (Qt4 porting. Strange value of Tolerance when use spin box): set step=0.00001 instead of 0.1.

This commit is contained in:
akl 2008-04-25 07:13:46 +00:00
parent d05cb1cde6
commit cb9918baac
3 changed files with 3 additions and 3 deletions

View File

@ -132,7 +132,7 @@ SMESHGUI_BuildCompoundDlg::SMESHGUI_BuildCompoundDlg( SMESHGUI* theModule )
TextLabelTol = new QLabel(tr("SMESH_TOLERANCE"), GroupArgs); TextLabelTol = new QLabel(tr("SMESH_TOLERANCE"), GroupArgs);
TextLabelTol->setAlignment(Qt::AlignCenter); TextLabelTol->setAlignment(Qt::AlignCenter);
SpinBoxTol = new SMESHGUI_SpinBox(GroupArgs); SpinBoxTol = new SMESHGUI_SpinBox(GroupArgs);
SpinBoxTol->RangeStepAndValidator(0.0, COORD_MAX, 0.1, 6); SpinBoxTol->RangeStepAndValidator(0.0, COORD_MAX, 0.00001, 6);
GroupArgsLayout->addWidget(TextLabelMeshes, 0, 0); GroupArgsLayout->addWidget(TextLabelMeshes, 0, 0);
GroupArgsLayout->addWidget(SelectButton, 0, 1); GroupArgsLayout->addWidget(SelectButton, 0, 1);

View File

@ -477,7 +477,7 @@ SMESHGUI_EditMeshDlg::~SMESHGUI_EditMeshDlg()
void SMESHGUI_EditMeshDlg::Init() void SMESHGUI_EditMeshDlg::Init()
{ {
if (myAction == 0) { if (myAction == 0) {
SpinBoxTolerance->RangeStepAndValidator(0.0, COORD_MAX, 0.1, 5); SpinBoxTolerance->RangeStepAndValidator(0.0, COORD_MAX, 0.00001, 5);
SpinBoxTolerance->SetValue(1e-05); SpinBoxTolerance->SetValue(1e-05);
} }

View File

@ -256,7 +256,7 @@ SMESHGUI_RevolutionDlg::SMESHGUI_RevolutionDlg( SMESHGUI* theModule )
SpinBox_NbSteps->setRange(1, 999999); SpinBox_NbSteps->setRange(1, 999999);
SpinBox_Tolerance->RangeStepAndValidator(0.0, COORD_MAX, 0.1, 6); SpinBox_Tolerance->RangeStepAndValidator(0.0, COORD_MAX, 0.00001, 6);
RadioButton1->setChecked(true); RadioButton1->setChecked(true);