From: eap Date: Mon, 3 Jul 2006 14:16:43 +0000 (+0000) Subject: PAL12789. Use 'g' conversion specifier for showing numbers X-Git-Tag: T3_2_1_pre~16 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=b9a6196fd808e66cd65964c2d46b1324509065d2;p=modules%2Fgeom.git PAL12789. Use 'g' conversion specifier for showing numbers --- diff --git a/src/DlgRef/DlgRef_SpinBox.cxx b/src/DlgRef/DlgRef_SpinBox.cxx index af86865ab..8a7ad7931 100644 --- a/src/DlgRef/DlgRef_SpinBox.cxx +++ b/src/DlgRef/DlgRef_SpinBox.cxx @@ -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);