Commit 42708807 authored by Kai Koehne's avatar Kai Koehne
Browse files

QmlOutline: Make sure that currently selected item is always visible

parent 7b8bd6e1
......@@ -146,7 +146,7 @@ void QmlJSOutlineWidget::updateSelectionInTree(const QModelIndex &index)
m_blockCursorSync = true;
m_treeView->selectionModel()->select(m_filterModel->mapFromSource(index), QItemSelectionModel::ClearAndSelect);
m_treeView->scrollTo(index);
m_treeView->scrollTo(m_filterModel->mapFromSource(index), QTreeView::PositionAtCenter);
m_blockCursorSync = false;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment