mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-05-01 14:45:42 +08:00
Ref T261, engine type as QChar
This commit is contained in:
committed by
Roland Winklmeier
parent
2d66fd470a
commit
756b1a1ada
@@ -290,6 +290,13 @@ namespace BlackMisc
|
|||||||
return m_combinedType.right(1);
|
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
|
int CAircraftIcaoCode::getEnginesCount() const
|
||||||
{
|
{
|
||||||
if (m_combinedType.length() < 2) { return -1; }
|
if (m_combinedType.length() < 2) { return -1; }
|
||||||
|
|||||||
@@ -132,6 +132,9 @@ namespace BlackMisc
|
|||||||
//! Get engine type, e.g. "J"
|
//! Get engine type, e.g. "J"
|
||||||
QString getEngineType() const;
|
QString getEngineType() const;
|
||||||
|
|
||||||
|
//! Get engine type, e.g. "J"
|
||||||
|
QChar getEngineTypeChar() const;
|
||||||
|
|
||||||
//! Engine count if any, -1 if no value is set
|
//! Engine count if any, -1 if no value is set
|
||||||
int getEnginesCount() const;
|
int getEnginesCount() const;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user