mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-04 16:56:53 +08:00
Minor tweaks:
* Altitude formatter for GUI * borders for CDockWidget * homebase for ATC
This commit is contained in:
committed by
Mathew Sutcliffe
parent
3c15f2ad89
commit
6570a0c966
@@ -33,10 +33,14 @@ namespace BlackMisc
|
||||
}
|
||||
else
|
||||
{
|
||||
QString s = this->CLength::valueRoundedWithUnit(4, i18n);
|
||||
if (this->getUnit() != CLengthUnit::ft())
|
||||
QString s;
|
||||
if (this->getUnit() == CLengthUnit::m())
|
||||
{
|
||||
s.append(" (").append(this->valueRoundedWithUnit(CLengthUnit::ft(), 4, i18n)).append(")");
|
||||
s = this->CLength::valueRoundedWithUnit(1, i18n);
|
||||
}
|
||||
else
|
||||
{
|
||||
s = this->CLength::valueRoundedWithUnit(CLengthUnit::ft(), 0, i18n);
|
||||
}
|
||||
return s.append(this->isMeanSeaLevel() ? " MSL" : " AGL");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user