| 584 | } |
| 585 | |
| 586 | void ProjectExplorer::navigateTo(const QString& path) { |
| 587 | const auto* tree_model = dynamic_cast<AspectTreeModel*>(m_treeView->model()); |
| 588 | if (tree_model) { |
| 589 | const auto& index = tree_model->modelIndexOfAspect(path); |
| 590 | if (!index.isValid()) |
| 591 | return; |
| 592 | m_treeView->scrollTo(index); |
| 593 | m_treeView->setCurrentIndex(index); |
| 594 | auto* aspect = static_cast<AbstractAspect*>(index.internalPointer()); |
| 595 | aspect->setSelected(true); |
| 596 | } |
| 597 | } |
| 598 | |
| 599 | void ProjectExplorer::toggleColumn(int index) { |
| 600 | // determine the total number of checked column actions |
nothing calls this directly
no test coverage detected