mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2025-01-18 10:10:38 +05:00
Correction for bug IPAL13044.
This commit is contained in:
parent
f6ced9dafd
commit
225e5b820d
@ -143,7 +143,8 @@ void BlocksGUI_TrsfDlg::Init()
|
||||
double SpecificStep = 1.0;
|
||||
QMap<int, DlgRef_SpinBox*>::iterator anIter;
|
||||
for (anIter = mySpinBox.begin(); anIter != mySpinBox.end(); ++anIter) {
|
||||
anIter.data()->RangeStepAndValidator(1.0, 999.999, SpecificStep, 3);
|
||||
//anIter.data()->RangeStepAndValidator(1.0, 999.999, SpecificStep, 3);
|
||||
anIter.data()->RangeStepAndValidator(1.0, MAX_NUMBER, SpecificStep, 3);
|
||||
}
|
||||
|
||||
// signals and slots connections
|
||||
|
@ -43,6 +43,7 @@
|
||||
|
||||
#define COORD_MIN -1e+15
|
||||
#define COORD_MAX +1e+15
|
||||
#define MAX_NUMBER 100000
|
||||
|
||||
//=================================================================================
|
||||
// class : DlgRef_SpinBox
|
||||
|
@ -124,10 +124,10 @@ void GenerationGUI_FillingDlg::Init()
|
||||
double SpecificStep1 = 1;
|
||||
double SpecificStep2 = 0.0001;
|
||||
/* min, max, step and decimals for spin boxes & initial values */
|
||||
GroupPoints->SpinBox_1->RangeStepAndValidator(2.0, 999.999, SpecificStep1, 3);
|
||||
GroupPoints->SpinBox_1->RangeStepAndValidator(2.0, MAX_NUMBER, SpecificStep1, 3);
|
||||
GroupPoints->SpinBox_2->RangeStepAndValidator(0.00001, 10000.0, SpecificStep2, 5);
|
||||
GroupPoints->SpinBox_3->RangeStepAndValidator(1.0, 999.999, SpecificStep1, 3);
|
||||
GroupPoints->SpinBox_4->RangeStepAndValidator(1.0, 999.999, SpecificStep1, 3);
|
||||
GroupPoints->SpinBox_3->RangeStepAndValidator(1.0, MAX_NUMBER, SpecificStep1, 3);
|
||||
GroupPoints->SpinBox_4->RangeStepAndValidator(1.0, MAX_NUMBER, SpecificStep1, 3);
|
||||
GroupPoints->SpinBox_5->RangeStepAndValidator(0.00001, 10000.0, SpecificStep2, 5);
|
||||
|
||||
GroupPoints->SpinBox_1->SetValue(myMinDeg);
|
||||
|
@ -131,14 +131,14 @@ void TransformationGUI_MultiTranslationDlg::Init()
|
||||
double SpecificStep = 1;
|
||||
/* min, max, step and decimals for spin boxes & initial values */
|
||||
GroupPoints->SpinBox_DX->RangeStepAndValidator(COORD_MIN, COORD_MAX, step, 3);
|
||||
GroupPoints->SpinBox_DY->RangeStepAndValidator(1.0, COORD_MAX, SpecificStep, 3);
|
||||
GroupPoints->SpinBox_DY->RangeStepAndValidator(1.0, MAX_NUMBER, SpecificStep, 3);
|
||||
GroupPoints->SpinBox_DX->SetValue(myStepU);
|
||||
GroupPoints->SpinBox_DY->SetValue(myNbTimesU);
|
||||
|
||||
GroupDimensions->SpinBox_DX1->RangeStepAndValidator(COORD_MIN, COORD_MAX, step, 3);
|
||||
GroupDimensions->SpinBox_DY1->RangeStepAndValidator(1.0, COORD_MAX, SpecificStep, 3);
|
||||
GroupDimensions->SpinBox_DY1->RangeStepAndValidator(1.0, MAX_NUMBER, SpecificStep, 3);
|
||||
GroupDimensions->SpinBox_DX2->RangeStepAndValidator(COORD_MIN, COORD_MAX, step, 3);
|
||||
GroupDimensions->SpinBox_DY2->RangeStepAndValidator(1.0, COORD_MAX, SpecificStep, 3);
|
||||
GroupDimensions->SpinBox_DY2->RangeStepAndValidator(1.0, MAX_NUMBER, SpecificStep, 3);
|
||||
GroupDimensions->SpinBox_DX1->SetValue(myStepU);
|
||||
GroupDimensions->SpinBox_DY1->SetValue(myNbTimesU);
|
||||
GroupDimensions->SpinBox_DX2->SetValue(myStepV);
|
||||
|
Loading…
Reference in New Issue
Block a user