32 const TSharedPtr<STreeView<ItemType>>& InTree,
33 const TArray<ItemType>& ItemSource,
34 const TSet<ItemType>& OldExpansionState, ComparisonType ComparisonFunction
37 check(InTree.IsValid());
40 for (int32 ItemIdx = 0; ItemIdx < ItemSource.Num(); ItemIdx++)
42 ItemType NewItem = ItemSource[ItemIdx];
45 for (
const ItemType OldItem : OldExpansionState)
48 if (ComparisonFunction(OldItem, NewItem))
51 InTree->SetItemExpansion(NewItem,
true);