mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-18 11:25:33 +08:00
Ref T554, PQ "valueRoundedAsString"
This commit is contained in:
committed by
Mat Sutcliffe
parent
fe2d092891
commit
3e0d318a48
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user