myValidator = new QDoubleValidator(this);
myValidator->setLocale(locale());
myValidator->setRange(myMinimum, myMaximum);
- myValidator->setDecimals(3);
+ myValidator->setDecimals(myPrecision);
}
void ModuleBase_ParamSpinBox::setCompletionList(QStringList& theList)
\param theParent a parent object
\param thePrecision a precision of values display
*/
- ModuleBase_ParamSpinBox( QWidget* theParent = 0, int thePrecision = -12 );
+ ModuleBase_ParamSpinBox( QWidget* theParent = 0, int thePrecision = 12 );
/// Set list of completion strings
void setCompletionList(QStringList&);