void ECEditorWindow::AddEntities(const QList<entity_id_t> &entities, bool select_all) { // SetEntitySelected() will block entity list's signals, no need to do it here. ClearEntities(); foreach(entity_id_t id, entities) { EntityListWidgetItem *item = AddEntity(id, false); if (select_all) SetEntitySelected(item, true); }
void ECEditorWindow::AddEntities(const EntityList &entities, bool selectAll) { // SetEntitySelected() will block entity list's signals, no need to do it here. ClearEntities(); foreach(const EntityPtr &entity, entities) { EntityListWidgetItem *item = AddEntity(entity, false); if (selectAll) SetEntitySelected(item, true, false); }