mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2025-02-21 00:29:40 +05:00
PAL12789. Use 'g' conversion specifier for showing numbers
This commit is contained in:
parent
fc5e4e00fc
commit
b9a6196fd8
@ -96,6 +96,8 @@ QString DlgRef_SpinBox::GetString()
|
||||
void DlgRef_SpinBox::RangeStepAndValidator(double min, double max,double step,
|
||||
unsigned short decimals)
|
||||
{
|
||||
setPrecision(-decimals); // PAL12789. 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