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:
5a1d0a6
)
fix PAL8769: make small values be correctly shown
author
eap
<eap@opencascade.com>
Tue, 27 Jun 2006 11:16:07 +0000
(11:16 +0000)
committer
eap
<eap@opencascade.com>
Tue, 27 Jun 2006 11:16:07 +0000
(11:16 +0000)
src/SMESHGUI/SMESHGUI_SpinBox.cxx
patch
|
blob
|
history
diff --git
a/src/SMESHGUI/SMESHGUI_SpinBox.cxx
b/src/SMESHGUI/SMESHGUI_SpinBox.cxx
index 772a6d1663132048b3a016d05bcfe4d339a7c121..a79c6ad64c761e30d81fdb752ebd94e55f116933 100644
(file)
--- a/
src/SMESHGUI/SMESHGUI_SpinBox.cxx
+++ b/
src/SMESHGUI/SMESHGUI_SpinBox.cxx
@@
-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);