Salome HOME
0020045: EDF 852 SMESH: Documention of Projection algorithms
[modules/smesh.git] / src / SMESHGUI / SMESHGUI_SpinBox.cxx
index d405feb990e4dfe2898e5e57ea2d771697d64325..d597fc36a511cabc23a04da9401ac94be1d9547e 100644 (file)
@@ -109,10 +109,11 @@ QDoubleValidator* SMESHGUI_SpinBox::validator() const
 void SMESHGUI_SpinBox::RangeStepAndValidator( double min,
                                              double max,
                                              double step,
-                                             unsigned short decimals )
+                                             unsigned short precision )
 {
-  setDecimals(decimals); // PAL8769. Minus is for using 'g' double->string conversion specifier,
-  //                        see QtxDoubleSpinBox::mapValueToText( double v )
-  setRange( min, max );
+  setPrecision(precision*(-1)); // PAL8769. Minus is for using 'g' double->string conversion specifier,
+  //                               see QtxDoubleSpinBox::mapValueToText( double v )
+  setDecimals(32);
+  setRange(min, max);
   setSingleStep( step );
 }