Ref T554, PQ "valueRoundedAsString"

This commit is contained in:
Klaus Basan
2019-02-24 03:13:11 +01:00
committed by Mat Sutcliffe
parent fe2d092891
commit 3e0d318a48
2 changed files with 15 additions and 4 deletions

View File

@@ -102,10 +102,6 @@ namespace BlackMisc
//! Set value in current unit
void setCurrentUnitValue(double value);
//! Rounded value in given unit
//! \note default digits is CMeasurementUnit::getDisplayDigits
double valueRounded(MU unit, int digits = -1) const;
//! As integer value
int valueInteger(MU unit) const;
@@ -115,10 +111,18 @@ namespace BlackMisc
//! Is value an integer
bool isInteger() const;
//! Rounded value in given unit
//! \note default digits is CMeasurementUnit::getDisplayDigits
double valueRounded(MU unit, int digits = -1) const;
//! Rounded value in current unit
//! \note default digits is CMeasurementUnit::getDisplayDigits
double valueRounded(int digits = -1) const;
//! Rounded value in given unit
//! \note default digits is CMeasurementUnit::getDisplayDigits
QString valueRoundedAsString(MU unit, int digits = -1) const;
//! Value to QString with the given unit, e.g. "5.00m"
//! \note default digits is CMeasurementUnit::getDisplayDigits
QString valueRoundedWithUnit(const MU &unit, int digits = -1, bool withGroupSeparator = false, bool i18n = false) const;