Base: add convenience functions to create a QString from quantity or double
This commit is contained in:
@@ -63,6 +63,14 @@ QuantityFormat::QuantityFormat()
|
||||
{
|
||||
}
|
||||
|
||||
QuantityFormat::QuantityFormat(QuantityFormat::NumberFormat format, int decimals)
|
||||
: option(OmitGroupSeparator | RejectGroupSeparator)
|
||||
, format(format)
|
||||
, precision(decimals < 0 ? UnitsApi::getDecimals() : decimals)
|
||||
, denominator(defaultDenominator)
|
||||
{
|
||||
}
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
|
||||
Quantity::Quantity()
|
||||
|
||||
Reference in New Issue
Block a user