Added a decimal to double parameters
This commit is contained in:
parent
388236e5c4
commit
a50929b0fc
@ -377,11 +377,11 @@ void ParametersToolBox::addParameter(QVBoxLayout * layout,
|
||||
{
|
||||
QDoubleSpinBox * widget = new QDoubleSpinBox(this);
|
||||
double def = Settings::getDefaultParameters().value(key).toDouble();
|
||||
if(def<0.001)
|
||||
if(def<0.01)
|
||||
{
|
||||
widget->setDecimals(4);
|
||||
}
|
||||
else if(def<0.01)
|
||||
else if(def<0.1)
|
||||
{
|
||||
widget->setDecimals(3);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user