mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-16 10:25:36 +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);
|
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 CAircraftIcaoCodeList::toCompleterStrings(bool withIataCodes, bool withFamily, bool sort) const
|
||||||
{
|
{
|
||||||
QStringList c;
|
QStringList c;
|
||||||
|
|||||||
@@ -100,6 +100,9 @@ namespace BlackMisc
|
|||||||
//! Sort by designator first, then by manufacturer and rank
|
//! Sort by designator first, then by manufacturer and rank
|
||||||
void sortByDesignatorManufacturerAndRank();
|
void sortByDesignatorManufacturerAndRank();
|
||||||
|
|
||||||
|
//! Remove invalid combined codes
|
||||||
|
void removeInvalidCombinedCodes();
|
||||||
|
|
||||||
//! For selection completion
|
//! For selection completion
|
||||||
QStringList toCompleterStrings(bool withIataCodes = false, bool withFamily = false, bool sort = true) const;
|
QStringList toCompleterStrings(bool withIataCodes = false, bool withFamily = false, bool sort = true) const;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user