mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-03 07:35:48 +08:00
refs #808, CSimulatorInternals
* renamed from CSimulatorSetup to CSimulatorInternals * removed the FSX class, no longer needed * utility functions for CNameVariantPair
This commit is contained in:
@@ -25,6 +25,14 @@ namespace BlackMisc
|
||||
return this->contains(&CNameVariantPair::getName, name);
|
||||
}
|
||||
|
||||
QStringList CNameVariantPairList::getNames(bool sorted) const
|
||||
{
|
||||
if (this->isEmpty()) { return QStringList(); }
|
||||
QStringList codes = this->transform(Predicates::MemberTransform(&CNameVariantPair::getName));
|
||||
if (sorted) { codes.sort(); }
|
||||
return codes;
|
||||
}
|
||||
|
||||
CNameVariantPair CNameVariantPairList::getValue(const QString &name) const
|
||||
{
|
||||
if (name.isEmpty()) { return CNameVariantPair(); }
|
||||
|
||||
Reference in New Issue
Block a user