Improved matching logging

This commit is contained in:
Klaus Basan
2019-05-27 00:14:36 +02:00
committed by Mat Sutcliffe
parent 949513ce50
commit 56d72b94c1
3 changed files with 47 additions and 13 deletions

View File

@@ -136,6 +136,9 @@ namespace BlackMisc
//! Group id
void setGroupId(int id) { m_groupId = id; }
//! Are we a member of a group?
bool hasGroupMembership() const { return m_groupId >= 0 && !m_groupDesignator.isEmpty(); }
//! Virtual airline
bool isVirtualAirline() const { return m_isVa; }

View File

@@ -60,6 +60,12 @@ namespace BlackMisc
{
return model >= 0 || livery >= 0 || aircraft >= 0;
}
//! Return as string
QString toQString() const
{
return QStringLiteral("Model: %1 Livery: %2 Aircraft: %3").arg(model).arg(livery).arg(aircraft);
}
};
//! Aircraft model (used by another pilot, my models on disk)