From: eap Date: Mon, 4 Apr 2005 10:49:14 +0000 (+0000) Subject: PAL8536. SMESHGUI_doubleParameter::InitializeWidget() : allow going down to _bottom... X-Git-Tag: T_3_0_0_a1~9 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=b8c2f65b6fbfcd25d6c404ab0276efa4e32e4ff0;p=modules%2Fsmesh.git PAL8536. SMESHGUI_doubleParameter::InitializeWidget() : allow going down to _bottom value --- diff --git a/src/SMESHGUI/SMESHGUI_aParameter.cxx b/src/SMESHGUI/SMESHGUI_aParameter.cxx index cbd22eb3b..7ba5e20dc 100644 --- a/src/SMESHGUI/SMESHGUI_aParameter.cxx +++ b/src/SMESHGUI/SMESHGUI_aParameter.cxx @@ -115,8 +115,9 @@ void SMESHGUI_doubleParameter::InitializeWidget( QWidget* theQWidget) const { QAD_SpinBoxDbl * aSpin = dynamic_cast< QAD_SpinBoxDbl *>( theQWidget ); if ( aSpin ) { + aSpin->setPrecision( _decimals ); + aSpin->setDblPrecision( _bottom ); aSpin->setRange( _bottom, _top ); - ((QDoubleValidator*)(aSpin->validator()))->setRange( _bottom, _top, _decimals ); aSpin->setValue( _initValue ); aSpin->setLineStep( _step ); }