Skip to content
Snippets Groups Projects
Commit 3a872611 authored by Kai Koehne's avatar Kai Koehne
Browse files

QmlOutline: Don't scroll to (horizontal) center when auto-selecting

parent 58892081
No related branches found
No related tags found
No related merge requests found
......@@ -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(m_filterModel->mapFromSource(index), QTreeView::PositionAtCenter);
m_treeView->scrollTo(m_filterModel->mapFromSource(index));
m_blockCursorSync = false;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment