fix PAL8769: make small values be correctly shown

This commit is contained in:
eap 2006-06-27 11:16:07 +00:00
parent 5a1d0a6f3a
commit 77d42b7c3c

View File

@ -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);