MCPcopy Create free account
hub / github.com/MiniZinc/MiniZincIDE / toggleHidden

Method toggleHidden

cp-profiler/src/cpprofiler/tree/traditional_view.cpp:304–321  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

302}
303
304void TraditionalView::toggleHidden()
305{
306 auto nid = node();
307 if (nid == NodeID::NoNode)
308 return;
309
310 // do not hide leaf nodes
311 if (is_leaf(tree_, nid))
312 return;
313
314 auto val = !vis_flags_->isHidden(nid);
315 vis_flags_->setHidden(nid, val);
316
317 dirtyUp(nid);
318
319 emit needsLayoutUpdate();
320 emit needsRedrawing();
321}
322
323void TraditionalView::hideFailedAt(NodeID n, bool onlyDirty)
324{

Callers

nothing calls this directly

Calls 3

is_leafFunction · 0.85
isHiddenMethod · 0.80
setHiddenMethod · 0.80

Tested by

no test coverage detected