From a50929b0fc9c15acc23024c525d48598a27e8358 Mon Sep 17 00:00:00 2001 From: matlabbe Date: Wed, 10 Jun 2015 19:11:37 -0400 Subject: [PATCH] Added a decimal to double parameters --- src/ParametersToolBox.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ParametersToolBox.cpp b/src/ParametersToolBox.cpp index f4ff92fd..89855e74 100644 --- a/src/ParametersToolBox.cpp +++ b/src/ParametersToolBox.cpp @@ -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); }