Klaus Basan
2019-06-26 11:30:01 +02:00
parent 8593eb412c
commit 7e34398a4a
3 changed files with 9 additions and 4 deletions

View File

@@ -660,8 +660,8 @@ namespace BlackCore
const QString route = flightPlan.getRoute();
const QString remarks = QString(flightPlan.getRemarks());
const QString alt = flightPlan.getCruiseAltitude().asFpVatsimAltitudeString();
//! \fixme that would be the official string, can this be used?
const QString alt = flightPlan.getCruiseAltitude().asFpVatsimAltitudeString();
// const QString alt = flightPlan.getCruiseAltitude().asFpAltitudeString();
QString act = flightPlan.getCombinedPrefixIcaoSuffix();

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;