mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-03 15:45:46 +08:00
Ref T472, further utility functions for category handling
This commit is contained in:
committed by
Mat Sutcliffe
parent
c899bfbea7
commit
54adb40329
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user