Salome HOME
projects
/
modules
/
smesh.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
8f2a761
)
PAL8536. In SMESHGUI_doubleParameter::InitializeWidget() allow going down to _bottom
author
eap
<eap@opencascade.com>
Mon, 4 Apr 2005 12:16:55 +0000
(12:16 +0000)
committer
eap
<eap@opencascade.com>
Mon, 4 Apr 2005 12:16:55 +0000
(12:16 +0000)
src/SMESHGUI/SMESHGUI_aParameter.cxx
patch
|
blob
|
history
diff --git
a/src/SMESHGUI/SMESHGUI_aParameter.cxx
b/src/SMESHGUI/SMESHGUI_aParameter.cxx
index cbd22eb3b196e78e890ee90ef29c28a67cdb56cb..7ba5e20dc774991f46940b9eccd2e857a4e2e84e 100644
(file)
--- 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 ) {
{
QAD_SpinBoxDbl * aSpin = dynamic_cast< QAD_SpinBoxDbl *>( theQWidget );
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->setLineStep( _step );
}
aSpin->setValue( _initValue );
aSpin->setLineStep( _step );
}