Added a decimal to double parameters

This commit is contained in:
matlabbe 2015-06-10 19:11:37 -04:00
parent 388236e5c4
commit a50929b0fc

View File

@ -377,11 +377,11 @@ void ParametersToolBox::addParameter(QVBoxLayout * layout,
{ {
QDoubleSpinBox * widget = new QDoubleSpinBox(this); QDoubleSpinBox * widget = new QDoubleSpinBox(this);
double def = Settings::getDefaultParameters().value(key).toDouble(); double def = Settings::getDefaultParameters().value(key).toDouble();
if(def<0.001) if(def<0.01)
{ {
widget->setDecimals(4); widget->setDecimals(4);
} }
else if(def<0.01) else if(def<0.1)
{ {
widget->setDecimals(3); widget->setDecimals(3);
} }