Klaus Basan
2019-06-26 11:30:01 +02:00
committed by Mat Sutcliffe
parent fba288edc3
commit 693c94c87a
4 changed files with 11 additions and 5 deletions

View File

@@ -373,7 +373,8 @@ namespace BlackMisc
// as feed, as none of the other clients
const CAltitude a = this->roundedToNearest100ft(false);
return a.valueRoundedWithUnit(CLengthUnit::ft(), 0);
// return a.valueRoundedWithUnit(CLengthUnit::ft(), 0);
return a.valueIntegerAsString(CLengthUnit::ft());
}
const QRegularExpression &CAltitude::fpAltitudeRegExp()

View File

@@ -104,11 +104,15 @@ namespace BlackMisc
//! Set value in current unit
void setCurrentUnitValue(double value);
//! As integer value
//! As integer value @{
int valueInteger(MU unit) const;
QString valueIntegerAsString(MU unit) const { return QString::number(this->valueInteger(unit)); }
// @}
//! As integer value in current unit
//! As integer value in current unit @{
int valueInteger() const;
QString valueIntegerAsString() const { return QString::number(this->valueInteger()); }
// @}
//! Is value an integer
bool isInteger() const;