| 508 | } |
| 509 | |
| 510 | static inline int |
| 511 | CountItemsVisibleInModel(const std::deque<std::shared_ptr<Macro>> ¯os) |
| 512 | { |
| 513 | int count = macros.size(); |
| 514 | for (const auto &m : macros) { |
| 515 | if (m->IsGroup() && m->IsCollapsed()) { |
| 516 | count -= m->GroupSize(); |
| 517 | } |
| 518 | } |
| 519 | return count; |
| 520 | } |
| 521 | |
| 522 | void MacroTreeModel::Add(std::shared_ptr<Macro> item) |
| 523 | { |