mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2024-11-13 17:18:35 +05:00
PAL8536. SMESHGUI_doubleParameter::InitializeWidget() : allow going down to _bottom value
This commit is contained in:
parent
ebe9f34644
commit
b8c2f65b6f
@ -115,8 +115,9 @@ void SMESHGUI_doubleParameter::InitializeWidget( QWidget* theQWidget) const
|
|||||||
{
|
{
|
||||||
QAD_SpinBoxDbl * aSpin = dynamic_cast< QAD_SpinBoxDbl *>( theQWidget );
|
QAD_SpinBoxDbl * aSpin = dynamic_cast< QAD_SpinBoxDbl *>( theQWidget );
|
||||||
if ( aSpin ) {
|
if ( aSpin ) {
|
||||||
|
aSpin->setPrecision( _decimals );
|
||||||
|
aSpin->setDblPrecision( _bottom );
|
||||||
aSpin->setRange( _bottom, _top );
|
aSpin->setRange( _bottom, _top );
|
||||||
((QDoubleValidator*)(aSpin->validator()))->setRange( _bottom, _top, _decimals );
|
|
||||||
aSpin->setValue( _initValue );
|
aSpin->setValue( _initValue );
|
||||||
aSpin->setLineStep( _step );
|
aSpin->setLineStep( _step );
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user