add new property rawValue to QuantitySpinBox to make it accessible from Python

This commit is contained in:
wmayer
2017-10-05 22:46:02 +02:00
parent 30379bc1ce
commit 81e2480ca6
2 changed files with 10 additions and 2 deletions

View File

@@ -413,6 +413,12 @@ Base::Quantity QuantitySpinBox::value() const
return d->quantity;
}
double QuantitySpinBox::rawValue() const
{
Q_D(const QuantitySpinBox);
return d->quantity.getValue();
}
void QuantitySpinBox::setValue(const Base::Quantity& value)
{
Q_D(QuantitySpinBox);