mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-06 10:15:38 +08:00
refs #575, livery completer
* utility functions in value object * completer class
This commit is contained in:
@@ -53,6 +53,18 @@ namespace BlackMisc
|
||||
m_military(isMilitary)
|
||||
{ }
|
||||
|
||||
QString CLivery::getCombinedCodePlusInfo() const
|
||||
{
|
||||
QString s(getCombinedCode());
|
||||
if (!this->getDescription().isEmpty())
|
||||
{
|
||||
s += " (";
|
||||
s += this->getDescription();
|
||||
s += ")";
|
||||
}
|
||||
return s;
|
||||
}
|
||||
|
||||
bool CLivery::setAirlineIcaoCode(const CAirlineIcaoCode &airlineIcao)
|
||||
{
|
||||
if (m_airline == airlineIcao) { return false; }
|
||||
|
||||
Reference in New Issue
Block a user