mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-10 05:55:33 +08:00
Ref T231, utility functions
* altitude * situation * callsign set * elevation set
This commit is contained in:
@@ -28,6 +28,13 @@ namespace BlackMisc
|
||||
this->parseFromString(altitudeAsString, mode);
|
||||
}
|
||||
|
||||
CAltitude CAltitude::withOffset(const CLength &offset) const
|
||||
{
|
||||
CAltitude copy(*this);
|
||||
if (!offset.isNull() && !offset.isZeroEpsilonConsidered()) { copy += offset; }
|
||||
return copy;
|
||||
}
|
||||
|
||||
QString CAltitude::convertToQString(bool i18n) const
|
||||
{
|
||||
if (this->m_datum == FlightLevel)
|
||||
|
||||
Reference in New Issue
Block a user