mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-02 06:35:52 +08:00
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:
@@ -143,6 +143,16 @@ namespace BlackGui
|
||||
return this->removeModelsWithModelString(models.getModelStrings(), sensitivity);
|
||||
}
|
||||
|
||||
int CAircraftModelView::replaceOrAddModelsWithString(const CAircraftModelList &models, Qt::CaseSensitivity sensitivity)
|
||||
{
|
||||
if (models.isEmpty()) { return 0; }
|
||||
CAircraftModelList copy(this->container());
|
||||
int c = copy.replaceOrAddModelsWithString(models, sensitivity);
|
||||
if (c == 0) { return 0; }
|
||||
this->updateContainerMaybeAsync(copy);
|
||||
return c;
|
||||
}
|
||||
|
||||
void CAircraftModelView::setHighlightModelStrings(const QStringList &highlightModels)
|
||||
{
|
||||
this->derivedModel()->setHighlightModelStrings(highlightModels);
|
||||
|
||||
Reference in New Issue
Block a user