From: eap Date: Tue, 27 Jun 2006 11:16:07 +0000 (+0000) Subject: fix PAL8769: make small values be correctly shown X-Git-Tag: T3_2_1_pre~13 X-Git-Url: http://git.salome-platform.org/gitweb/?p=modules%2Fsmesh.git;a=commitdiff_plain;h=77d42b7c3ca7aa53707783b0647513d9de63403e fix PAL8769: make small values be correctly shown --- diff --git a/src/SMESHGUI/SMESHGUI_SpinBox.cxx b/src/SMESHGUI/SMESHGUI_SpinBox.cxx index 772a6d166..a79c6ad64 100644 --- a/src/SMESHGUI/SMESHGUI_SpinBox.cxx +++ b/src/SMESHGUI/SMESHGUI_SpinBox.cxx @@ -95,6 +95,8 @@ QString SMESHGUI_SpinBox::GetString() void SMESHGUI_SpinBox::RangeStepAndValidator (double min, double max, double step, unsigned short decimals) { + setPrecision(-decimals); // PAL8769. 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);