Make sure current index is always visible in Outline QTreeViews

This commit is contained in:
Kai Koehne
2010-07-09 15:27:32 +02:00
parent 8acde74d79
commit 0f8a491e7a
2 changed files with 2 additions and 0 deletions

View File

@@ -105,6 +105,7 @@ void CppOutlineWidget::updateSelectionInTree(const QModelIndex &index)
qDebug() << "CppOutline - updating selection due to cursor move";
m_treeView->selectionModel()->select(proxyIndex, QItemSelectionModel::ClearAndSelect);
m_treeView->scrollTo(proxyIndex);
m_blockCursorSync = false;
}