MCPcopy Create free account
hub / github.com/KDE/labplot / deselectIndex

Method deselectIndex

src/frontend/ProjectExplorer.cpp:794–802  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

792}
793
794void ProjectExplorer::deselectIndex(const QModelIndex& index) {
795 if (m_project->isLoading())
796 return;
797
798 if (m_treeView->selectionModel()->isSelected(index)) {
799 m_changeSelectionFromView = true;
800 m_treeView->selectionModel()->select(index, QItemSelectionModel::Deselect | QItemSelectionModel::Rows);
801 }
802}
803
804void ProjectExplorer::selectionChanged(const QItemSelection& selected, const QItemSelection& deselected) {
805 if (m_project->isLoading())

Callers

nothing calls this directly

Calls 3

isLoadingMethod · 0.80
selectionModelMethod · 0.80
isSelectedMethod · 0.45

Tested by

no test coverage detected