mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-03 15:45:46 +08:00
Improved matching logging
This commit is contained in:
committed by
Mat Sutcliffe
parent
949513ce50
commit
56d72b94c1
@@ -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; }
|
||||
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user