| 44 | } |
| 45 | |
| 46 | size_t TreeControl::Node::prepareChildren() |
| 47 | { |
| 48 | prepare(); |
| 49 | |
| 50 | size_t nResult = 0; |
| 51 | for (auto* pChild : getChildren()) |
| 52 | { |
| 53 | nResult++; |
| 54 | |
| 55 | pChild->prepare(); |
| 56 | if (pChild->isExpanded()) |
| 57 | nResult += pChild->prepareChildren(); |
| 58 | } |
| 59 | |
| 60 | return nResult; |
| 61 | } |
| 62 | |
| 63 | void TreeControl::Node::setExpanded(bool bIsExpanded) |
| 64 | { |
no test coverage detected