mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-23 07:15:35 +08:00
Ref T80, remove invalid combined codes
This commit is contained in:
@@ -167,6 +167,11 @@ namespace BlackMisc
|
||||
this->sortBy(&CAircraftIcaoCode::getDesignator, &CAircraftIcaoCode::getManufacturer, &CAircraftIcaoCode::getRank);
|
||||
}
|
||||
|
||||
void CAircraftIcaoCodeList::removeInvalidCombinedCodes()
|
||||
{
|
||||
this->removeIf([](const CAircraftIcaoCode & icao) { return !icao.hasValidCombinedType(); });
|
||||
}
|
||||
|
||||
QStringList CAircraftIcaoCodeList::toCompleterStrings(bool withIataCodes, bool withFamily, bool sort) const
|
||||
{
|
||||
QStringList c;
|
||||
|
||||
@@ -100,6 +100,9 @@ namespace BlackMisc
|
||||
//! Sort by designator first, then by manufacturer and rank
|
||||
void sortByDesignatorManufacturerAndRank();
|
||||
|
||||
//! Remove invalid combined codes
|
||||
void removeInvalidCombinedCodes();
|
||||
|
||||
//! For selection completion
|
||||
QStringList toCompleterStrings(bool withIataCodes = false, bool withFamily = false, bool sort = true) const;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user