mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-21 04:45:31 +08:00
Ref T451, utility functions
This commit is contained in:
committed by
Mat Sutcliffe
parent
93cf349a04
commit
b648960b59
@@ -562,6 +562,12 @@ namespace BlackMisc
|
|||||||
return r > 0;
|
return r > 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
int CAircraftModelList::removeModelsWithString(const CAircraftModelList &models, Qt::CaseSensitivity sensitivity)
|
||||||
|
{
|
||||||
|
if (models.isEmpty()) { return 0; }
|
||||||
|
return this->removeModelsWithString(models.getModelStringList(false), sensitivity);
|
||||||
|
}
|
||||||
|
|
||||||
int CAircraftModelList::removeModelsWithString(const QStringList &modelStrings, Qt::CaseSensitivity sensitivity)
|
int CAircraftModelList::removeModelsWithString(const QStringList &modelStrings, Qt::CaseSensitivity sensitivity)
|
||||||
{
|
{
|
||||||
if (modelStrings.isEmpty()) { return 0; }
|
if (modelStrings.isEmpty()) { return 0; }
|
||||||
|
|||||||
@@ -244,6 +244,10 @@ namespace BlackMisc
|
|||||||
//! \return number of elements removed
|
//! \return number of elements removed
|
||||||
bool removeModelWithString(const QString &modelString, Qt::CaseSensitivity sensitivity);
|
bool removeModelWithString(const QString &modelString, Qt::CaseSensitivity sensitivity);
|
||||||
|
|
||||||
|
//! Remove those models with given model strings
|
||||||
|
//! \return number of elements removed
|
||||||
|
int removeModelsWithString(const CAircraftModelList &models, Qt::CaseSensitivity sensitivity);
|
||||||
|
|
||||||
//! Remove those models with given model strings
|
//! Remove those models with given model strings
|
||||||
//! \return number of elements removed
|
//! \return number of elements removed
|
||||||
int removeModelsWithString(const QStringList &modelStrings, Qt::CaseSensitivity sensitivity);
|
int removeModelsWithString(const QStringList &modelStrings, Qt::CaseSensitivity sensitivity);
|
||||||
|
|||||||
Reference in New Issue
Block a user