mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-08 21:05:34 +08:00
Formatting
This commit is contained in:
@@ -45,7 +45,7 @@ namespace BlackMisc
|
||||
return s;
|
||||
}
|
||||
|
||||
const QString CFlightPlan::flightruleToString(CFlightPlan::FlightRules rule)
|
||||
const QString CFlightPlan::flightRuleToString(CFlightPlan::FlightRules rule)
|
||||
{
|
||||
switch (rule)
|
||||
{
|
||||
|
||||
@@ -186,7 +186,7 @@ namespace BlackMisc
|
||||
QString convertToQString(bool i18n = false) const;
|
||||
|
||||
//! Rules to string
|
||||
static const QString flightruleToString(FlightRules rule);
|
||||
static const QString flightRuleToString(FlightRules rule);
|
||||
|
||||
private:
|
||||
QString m_equipmentIcao; //!< e.g. "T/A320/F"
|
||||
|
||||
@@ -286,7 +286,7 @@ namespace BlackMisc
|
||||
CVariant CSimulatedAircraft::propertyByIndex(const BlackMisc::CPropertyIndex &index) const
|
||||
{
|
||||
if (index.isMyself()) { return CVariant::from(*this); }
|
||||
ColumnIndex i = index.frontCasted<ColumnIndex>();
|
||||
const ColumnIndex i = index.frontCasted<ColumnIndex>();
|
||||
switch (i)
|
||||
{
|
||||
case IndexModel:
|
||||
@@ -372,7 +372,7 @@ namespace BlackMisc
|
||||
break;
|
||||
case IndexModel:
|
||||
this->m_models[CurrentModel].setPropertyByIndex(index.copyFrontRemoved(), variant);
|
||||
this->setModel(this->m_models[CurrentModel]); // sync some values
|
||||
this->setModel(this->m_models[CurrentModel]); // sync some values such as callsign
|
||||
break;
|
||||
case IndexNetworkModel:
|
||||
this->m_models[NetworkModel].setPropertyByIndex(index.copyFrontRemoved(), variant);
|
||||
|
||||
Reference in New Issue
Block a user