From 3a87261193fcfaa40880de11f53e38b0ef6fbbc7 Mon Sep 17 00:00:00 2001 From: Kai Koehne <kai.koehne@nokia.com> Date: Wed, 25 Aug 2010 15:31:25 +0200 Subject: [PATCH] QmlOutline: Don't scroll to (horizontal) center when auto-selecting --- src/plugins/qmljseditor/qmljsoutline.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/qmljseditor/qmljsoutline.cpp b/src/plugins/qmljseditor/qmljsoutline.cpp index db9da7dfd61..8618c22093e 100644 --- a/src/plugins/qmljseditor/qmljsoutline.cpp +++ b/src/plugins/qmljseditor/qmljsoutline.cpp @@ -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; } -- GitLab