add posibility to use a unit schema other then the system schema to represent a quantity
This commit is contained in:
@@ -213,6 +213,11 @@ QString Quantity::getUserString(double& factor, QString& unitString) const
|
||||
return Base::UnitsApi::schemaTranslate(*this, factor, unitString);
|
||||
}
|
||||
|
||||
QString Quantity::getUserString(UnitsSchema* schema, double &factor, QString &unitString) const
|
||||
{
|
||||
return schema->schemaTranslate(*this, factor, unitString);
|
||||
}
|
||||
|
||||
/// true if it has a number without a unit
|
||||
bool Quantity::isDimensionless(void)const
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user