mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-01 13:36:48 +08:00
Distributor filter improvements
* if all or none simulator is selected do not filter * also select if there is no (NULL) simulator
This commit is contained in:
committed by
Mat Sutcliffe
parent
00b2034b2d
commit
1642502aae
@@ -144,15 +144,21 @@ namespace BlackMisc
|
||||
return (m_simulator & otherInfo.m_simulator) > 0;
|
||||
}
|
||||
|
||||
bool CSimulatorInfo::matchesAnyOrNone(const CSimulatorInfo &otherInfo) const
|
||||
{
|
||||
if (this->isNoSimulator()) { return true; }
|
||||
return this->matchesAny(otherInfo);
|
||||
}
|
||||
|
||||
int CSimulatorInfo::comparePropertyByIndex(const CPropertyIndex &index, const CSimulatorInfo &compareValue) const
|
||||
{
|
||||
Q_UNUSED(index);
|
||||
Q_UNUSED(index)
|
||||
return Compare::compare(m_simulator, compareValue.m_simulator);
|
||||
}
|
||||
|
||||
QString CSimulatorInfo::convertToQString(bool i18n) const
|
||||
{
|
||||
Q_UNUSED(i18n);
|
||||
Q_UNUSED(i18n)
|
||||
const Simulator s = getSimulator();
|
||||
const QString str =
|
||||
(s.testFlag(FSX) ? QStringLiteral("FSX ") : QString()) %
|
||||
|
||||
Reference in New Issue
Block a user