MCPcopy Create free account
hub / github.com/WarmUpTill/SceneSwitcher / ExpandGroup

Method ExpandGroup

lib/macro/macro-tree.cpp:846–859  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

844}
845
846void MacroTreeModel::ExpandGroup(std::shared_ptr<Macro> item)
847{
848 auto idx = GetItemModelIndex(item);
849 if (idx == -1 || !item->IsGroup() || !item->GroupSize() ||
850 !item->IsCollapsed()) {
851 return;
852 }
853
854 item->SetCollapsed(false);
855 Reset(_macros);
856
857 _mt->selectionModel()->clear();
858 assert(IsInValidState());
859}
860
861void MacroTreeModel::CollapseGroup(std::shared_ptr<Macro> item)
862{

Callers 2

ExpandClickedMethod · 0.80
on_macroAdd_clickedMethod · 0.80

Calls 4

IsGroupMethod · 0.80
GroupSizeMethod · 0.80
IsCollapsedMethod · 0.80
SetCollapsedMethod · 0.45

Tested by

no test coverage detected