40 std::vector<AbstractTreeItem*> descendantItems;
41 std::vector<AbstractTreeItem*> childrenItems;
45 int numChildren = children().count();
46 for(
int i = 0; i < numChildren; ++i)
49 descendantItems.push_back(childItem);
54 for(std::size_t i = 0; i < childrenItems.size(); ++i)
55 descendantItems.push_back(childrenItems[i]);
57 return descendantItems;
62 std::vector<AbstractTreeItem*> ancestorLayers;
67 ancestorLayers.push_back(itemParent);
71 return ancestorLayers;
The class that represents an item in a LayerTreeModel.