First tests of using InputField via Python

This commit is contained in:
jriegel
2014-02-09 20:50:07 +01:00
parent 58fda26298
commit d17fb3aa5d
4 changed files with 64 additions and 60 deletions

View File

@@ -329,6 +329,17 @@ void InputField::setMinimum(double m)
Minimum = m;
}
void InputField::setUnitText(QString str)
{
Base::Quantity quant = Base::Quantity::parse(str);
setUnit(quant.getUnit());
}
QString InputField::getUnitText(void)
{
return actUnitStr;
}
// get the value of the minimum property
int InputField::historySize(void)const
{