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

Method toggleLanternView

cp-profiler/src/cpprofiler/execution_window.cpp:527–545  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

525}
526
527void ExecutionWindow::toggleLanternView(bool checked)
528{
529
530 if (checked)
531 {
532 const int max_nodes = execution_.tree().nodeCount();
533 lantern_widget->setMax(max_nodes);
534 lantern_widget->show();
535 auto old_value = lantern_widget->value();
536 traditional_view_->hideBySize(old_value);
537 }
538 else
539 {
540 /// Undo lantern tree
541 traditional_view_->undoLanterns();
542 traditional_view_->unhideAll();
543 lantern_widget->hide();
544 }
545}
546
547void ExecutionWindow::setDarkMode(bool d)
548{

Callers

nothing calls this directly

Calls 6

setMaxMethod · 0.80
hideBySizeMethod · 0.80
undoLanternsMethod · 0.80
nodeCountMethod · 0.45
valueMethod · 0.45
unhideAllMethod · 0.45

Tested by

no test coverage detected