]> SALOME platform Git repositories - modules/geom.git/commitdiff
Salome HOME
PAL12789. Use 'g' conversion specifier for showing numbers
authoreap <eap@opencascade.com>
Mon, 3 Jul 2006 14:16:43 +0000 (14:16 +0000)
committereap <eap@opencascade.com>
Mon, 3 Jul 2006 14:16:43 +0000 (14:16 +0000)
src/DlgRef/DlgRef_SpinBox.cxx

index af86865ab6aff131044d0f26d18fecccfbc741dd..8a7ad79314d1c3947c203ab76df5e8a568fd3a4e 100644 (file)
@@ -96,6 +96,8 @@ QString DlgRef_SpinBox::GetString()
 void DlgRef_SpinBox::RangeStepAndValidator(double min, double max,double step,
                                           unsigned short decimals)
 {
+  setPrecision(-decimals); // PAL12789. Minus is for using 'g' double->string conversion specifier,
+  //                          see QtxDblSpinBox::mapValueToText( double v )
   setRange(min, max);
   setLineStep(step);
   ((QDoubleValidator*)validator())->setRange(min, max, decimals);