refs #618, allow to update/add models based on model string

* functionality in list
* access via view
* fixed count for changed objects in datastoreobjectlist (now detects replacements)
This commit is contained in:
Klaus Basan
2016-03-22 08:03:36 +01:00
parent 7beb5661a3
commit 6fdddf8f93
5 changed files with 36 additions and 2 deletions

View File

@@ -92,6 +92,10 @@ namespace BlackMisc
//! \return number of elements removed
int removeModelsWithString(const QStringList &modelStrings, Qt::CaseSensitivity sensitivity);
//! Replace or add based on model string
//! \return number of elements removed
int replaceOrAddModelsWithString(const CAircraftModelList &addOrReplaceList, Qt::CaseSensitivity sensitivity);
//! Model strings
QStringList getModelStrings(bool sort = true) const;