add new property rawValue to QuantitySpinBox to make it accessible from Python
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user