mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-20 20:40:29 +08:00
refs #538, Formatting, minor tweaks, comments
* new slot syntax in ATC station component * formatting, comments * tab order * utility function for severity in status message * null checks in threadutils * invalidKey function in datastore * changed data object keys (cached objets) * added missing value object compare cases * renamed timer in context network * finder function for model list * renamed getContainer to container (as it is just a reference)
This commit is contained in:
@@ -302,8 +302,14 @@ namespace BlackMisc
|
||||
return Compare::compare(m_legacy, compareValue.isLegacyAircraft());
|
||||
case IndexIsMilitary:
|
||||
return Compare::compare(m_military, compareValue.isMilitary());
|
||||
case IndexIsVtol:
|
||||
return Compare::compare(isVtol(), compareValue.isVtol());
|
||||
case IndexIsRealworld:
|
||||
return Compare::compare(m_realWorld, compareValue.isRealWorld());
|
||||
case IndexRank:
|
||||
return Compare::compare(m_rank, compareValue.getRank());
|
||||
case IndexDesignatorManufacturer:
|
||||
return getDesignatorManufacturer().compare(compareValue.getDesignatorManufacturer(), Qt::CaseInsensitive);
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -44,7 +44,7 @@ namespace BlackMisc
|
||||
IndexIsLegacy,
|
||||
IndexIsVtol,
|
||||
IndexRank,
|
||||
IndexDesignatorManufacturer
|
||||
IndexDesignatorManufacturer //!< designator and manufacturer
|
||||
};
|
||||
|
||||
//! Default constructor.
|
||||
|
||||
@@ -166,6 +166,8 @@ namespace BlackMisc
|
||||
return this->m_designator.compare(compareValue.getDesignator());
|
||||
case IndexAirlineCountry:
|
||||
return this->m_country.comparePropertyByIndex(compareValue.getCountry(), index.copyFrontRemoved());
|
||||
case IndexDesignatorNameCountry:
|
||||
return this->m_country.getName().compare(compareValue.getCountry().getName(), Qt::CaseInsensitive);
|
||||
case IndexAirlineName:
|
||||
return this->m_name.compare(compareValue.getName(), Qt::CaseInsensitive);
|
||||
case IndexTelephonyDesignator:
|
||||
|
||||
Reference in New Issue
Block a user