DBViewer: show local transform in calibration parameters, increased precision of small numbers < 0.001 for parameters toolbox

This commit is contained in:
matlabbe
2016-11-16 11:39:44 -05:00
parent f6cca3313a
commit d73394abd8
2 changed files with 14 additions and 7 deletions

View File

@@ -358,7 +358,11 @@ void ParametersToolBox::addParameter(QVBoxLayout * layout,
{
QDoubleSpinBox * widget = new QDoubleSpinBox(this);
double def = uStr2Double(Parameters::getDefaultParameters().at(key.toStdString()));
if(def<0.01)
if(def<0.001)
{
widget->setDecimals(5);
}
else if(def<0.01)
{
widget->setDecimals(4);
}