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

Method getSelected

cp-profiler/src/cpprofiler/execution_list.cpp:34–54  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

32}
33
34std::vector<Execution *> ExecutionList::getSelected()
35{
36 auto selected_model = m_tree_view.selectionModel();
37 auto selected = selected_model->selectedRows();
38
39 std::vector<Execution *> result;
40
41 for (auto idx : selected)
42 {
43
44 auto item = m_execution_tree_model.itemFromIndex(idx);
45 auto exec_item = dynamic_cast<ExecutionItem *>(item);
46
47 if (exec_item)
48 {
49 result.push_back(exec_item->get_execution());
50 }
51 }
52
53 return result;
54}
55
56} // namespace cpprofiler

Callers 1

ConductorMethod · 0.80

Calls 1

get_executionMethod · 0.80

Tested by

no test coverage detected