mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-01-28 00:30:33 +05:00
fix PAL8769: make small values be correctly shown
This commit is contained in:
parent
5a1d0a6f3a
commit
77d42b7c3c
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user