mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-07 19:35:32 +08:00
refs #535 completer for airline name
* common base class for airline completers * changed dependend classes
This commit is contained in:
@@ -210,6 +210,19 @@ namespace BlackMisc
|
||||
return s.append(" ").append(getDbKeyAsStringInParentheses());
|
||||
}
|
||||
|
||||
QString CAirlineIcaoCode::getNameWithKey() const
|
||||
{
|
||||
if (!hasValidDbKey()) { return getName(); }
|
||||
if (hasName())
|
||||
{
|
||||
return QString(getName()).append(" ").append(getDbKeyAsStringInParentheses());
|
||||
}
|
||||
else
|
||||
{
|
||||
return getDbKeyAsStringInParentheses();
|
||||
}
|
||||
}
|
||||
|
||||
void CAirlineIcaoCode::updateMissingParts(const CAirlineIcaoCode &otherIcaoCode)
|
||||
{
|
||||
if (!this->hasValidDesignator()) { this->setDesignator(otherIcaoCode.getDesignator()); }
|
||||
|
||||
Reference in New Issue
Block a user