Ref T261, engine type as QChar

This commit is contained in:
Klaus Basan
2018-04-28 19:57:18 +02:00
committed by Roland Winklmeier
parent 2d66fd470a
commit 756b1a1ada
2 changed files with 10 additions and 0 deletions

View File

@@ -290,6 +290,13 @@ namespace BlackMisc
return m_combinedType.right(1);
}
QChar CAircraftIcaoCode::getEngineTypeChar() const
{
const QString et = this->getEngineType();
if (et.length() == 1) { return et[0]; }
return QChar();
}
int CAircraftIcaoCode::getEnginesCount() const
{
if (m_combinedType.length() < 2) { return -1; }