Ref T472, further utility functions for category handling

This commit is contained in:
Klaus Basan
2019-03-09 02:05:07 +01:00
committed by Mat Sutcliffe
parent c899bfbea7
commit 54adb40329
8 changed files with 95 additions and 4 deletions

View File

@@ -202,7 +202,7 @@ namespace BlackMisc
if (this->hasValidDbKey())
{
return this->hasModelString() ?
QString(this->getModelString() + this->getDbKeyAsStringInParentheses(" ")) :
this->getModelString() % this->getDbKeyAsStringInParentheses(" ") :
this->getDbKeyAsString();
}
else
@@ -390,6 +390,11 @@ namespace BlackMisc
return m_aircraftIcao.hasKnownDesignator();
}
bool CAircraftModel::hasCategory() const
{
return m_aircraftIcao.hasCategory();
}
bool CAircraftModel::hasAirlineDesignator() const
{
return m_livery.hasValidAirlineDesignator();