| 778 | } |
| 779 | |
| 780 | void ProjectExplorer::selectIndex(const QModelIndex& index) { |
| 781 | if (m_project->isLoading()) |
| 782 | return; |
| 783 | |
| 784 | DEBUG(Q_FUNC_INFO) |
| 785 | |
| 786 | if (!m_treeView->selectionModel()->isSelected(index)) { |
| 787 | m_changeSelectionFromView = true; |
| 788 | m_treeView->selectionModel()->select(index, QItemSelectionModel::Select | QItemSelectionModel::Rows); |
| 789 | m_treeView->setExpanded(index, true); |
| 790 | m_treeView->scrollTo(index); |
| 791 | } |
| 792 | } |
| 793 | |
| 794 | void ProjectExplorer::deselectIndex(const QModelIndex& index) { |
| 795 | if (m_project->isLoading()) |
nothing calls this directly
no test coverage detected