mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-14 00:25:35 +08:00
refs #681, FSD UI at login screen
* plus completers for login GUI (ICAO, ...) * some utility functions in related value object classed
This commit is contained in:
@@ -154,6 +154,20 @@ namespace BlackMisc
|
||||
return c;
|
||||
}
|
||||
|
||||
QStringList CAirlineIcaoCodeList::toIcaoDesignatorNameCountryCompleterStrings(bool sort) const
|
||||
{
|
||||
QStringList c;
|
||||
for (const CAirlineIcaoCode &icao : *this)
|
||||
{
|
||||
if (!icao.hasValidDesignator()) { continue; }
|
||||
const QString cs(icao.getDesignatorNameCountry());
|
||||
if (cs.isEmpty()) { continue; }
|
||||
c.append(cs);
|
||||
}
|
||||
if (sort) { c.sort(); }
|
||||
return c;
|
||||
}
|
||||
|
||||
QStringList CAirlineIcaoCodeList::toNameCompleterStrings(bool sort) const
|
||||
{
|
||||
QStringList c;
|
||||
|
||||
Reference in New Issue
Block a user