forked from qt-creator/qt-creator
Make sure current index is always visible in Outline QTreeViews
This commit is contained in:
@@ -337,6 +337,7 @@ void QmlJSOutlineWidget::updateSelectionInTree()
|
||||
|
||||
m_blockCursorSync = true;
|
||||
m_treeView->selectionModel()->select(index, QItemSelectionModel::ClearAndSelect);
|
||||
m_treeView->scrollTo(index);
|
||||
m_blockCursorSync = false;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user