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

@@ -337,6 +337,7 @@ void QmlJSOutlineWidget::updateSelectionInTree()
m_blockCursorSync = true;
m_treeView->selectionModel()->select(index, QItemSelectionModel::ClearAndSelect);
m_treeView->scrollTo(index);
m_blockCursorSync = false;
}