mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-06 10:15:38 +08:00
Some fixes / tweaks / Doxygen:
* helper method to detect disconnected state * clear ATC info if disconnected or not available * unit test for "finders" * added Doxygen file * formatting frequency in text message tabs
This commit is contained in:
@@ -175,8 +175,11 @@ namespace BlackGui
|
||||
void CTextMessageComponent::showCurrentFrequenciesFromCockpit()
|
||||
{
|
||||
const CAircraft ownAircraft = this->getOwnAircraft();
|
||||
const QString f1 = QString("COM1: %1").arg(ownAircraft.getCom1System().getFrequencyActive().valueRounded(CFrequencyUnit::MHz(), 3));
|
||||
const QString f2 = QString("COM2: %1").arg(ownAircraft.getCom2System().getFrequencyActive().valueRounded(CFrequencyUnit::MHz(), 3));
|
||||
QString f1n, f2n;
|
||||
f1n.sprintf("%03.3f", ownAircraft.getCom1System().getFrequencyActive().valueRounded(CFrequencyUnit::MHz(), 3));
|
||||
f2n.sprintf("%03.3f", ownAircraft.getCom2System().getFrequencyActive().valueRounded(CFrequencyUnit::MHz(), 3));
|
||||
const QString f1 = QString("COM1: %1").arg(f1n);
|
||||
const QString f2 = QString("COM2: %1").arg(f2n);
|
||||
this->ui->tb_TextMessagesCOM1->setToolTip(f1);
|
||||
this->ui->tb_TextMessagesCOM1->setToolTip(f2);
|
||||
this->setTabText(this->indexOf(this->ui->tb_TextMessagesCOM1), f1);
|
||||
|
||||
Reference in New Issue
Block a user