mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-07 11:05:33 +08:00
refs #250, formatting, minor tweaks and fixes
* changed return type for updateFromVatsimDataFileStation * improved resolution for own aircraft * convenience method findFirstByCallsign * automatically convert frequency to MHz for ATC station * improved output in toQString * GUI, flight plan formatting * corrected logging for network context * override keyword in listmodelbase
This commit is contained in:
@@ -78,7 +78,7 @@ namespace BlackMisc
|
||||
|
||||
// frequency
|
||||
s.append(' ');
|
||||
s.append(this->m_frequency.toQString(i18n));
|
||||
s.append(this->m_frequency.valueRoundedWithUnit(3, i18n));
|
||||
|
||||
// ATIS
|
||||
if (this->hasAtis())
|
||||
@@ -103,6 +103,7 @@ namespace BlackMisc
|
||||
// distance to plane
|
||||
if (this->m_distanceToPlane.isPositiveWithEpsilonConsidered())
|
||||
{
|
||||
s.append(' ');
|
||||
i18n ? s.append(QCoreApplication::translate("Aviation", "distance")) : s.append("distance");
|
||||
s.append(' ');
|
||||
s.append(this->m_distanceToPlane.toQString(i18n));
|
||||
@@ -232,6 +233,14 @@ namespace BlackMisc
|
||||
return !((*this) == other);
|
||||
}
|
||||
|
||||
/*
|
||||
* Frequency
|
||||
*/
|
||||
void CAtcStation::setFrequency(const CFrequency &frequency) {
|
||||
this->m_frequency = frequency;
|
||||
this->m_frequency.setUnit(CFrequencyUnit::MHz());
|
||||
}
|
||||
|
||||
/*
|
||||
* SyncronizeControllerData
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user