mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-01 13:36:48 +08:00
Ref T129, SVFR/VFR discussion
* utility functions in flight plan class * adjusted flight plan component and client
This commit is contained in:
committed by
Mathew Sutcliffe
parent
510666622c
commit
3d541a8dd1
@@ -183,6 +183,14 @@ namespace BlackGui
|
||||
else
|
||||
{
|
||||
ui->le_CrusingAltitude->setText(cruiseAlt.valueRoundedWithUnit(BlackMisc::PhysicalQuantities::CLengthUnit::ft(), 0));
|
||||
switch (flightPlan.getFlightRulesAsVFRorIFR())
|
||||
{
|
||||
case CFlightPlan::VFR:
|
||||
ui->rb_TypeVfr->setChecked(true);
|
||||
break;
|
||||
default:
|
||||
ui->rb_TypeIfr->setChecked(true);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user