PAL8536. In SMESHGUI_doubleParameter::InitializeWidget() allow going down to _bottom

This commit is contained in:
eap 2005-04-04 12:16:55 +00:00
parent 8f2a7615f7
commit 2f62477c15

View File

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