summaryrefslogtreecommitdiff
path: root/src/plugins/qmljseditor/qmljsoutline.cpp
diff options
context:
space:
mode:
authorKai Koehne <kai.koehne@nokia.com>2010-08-25 15:31:25 +0200
committerKai Koehne <kai.koehne@nokia.com>2010-08-25 15:32:02 +0200
commit3a87261193fcfaa40880de11f53e38b0ef6fbbc7 (patch)
tree7019c4f8f9877b04f21019b229db9a8ce3fa889e /src/plugins/qmljseditor/qmljsoutline.cpp
parent58892081dec613b89394f10f9d78b9d84b0d5a48 (diff)
downloadqt-creator-3a87261193fcfaa40880de11f53e38b0ef6fbbc7.tar.gz
QmlOutline: Don't scroll to (horizontal) center when auto-selecting
Diffstat (limited to 'src/plugins/qmljseditor/qmljsoutline.cpp')
-rw-r--r--src/plugins/qmljseditor/qmljsoutline.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/qmljseditor/qmljsoutline.cpp b/src/plugins/qmljseditor/qmljsoutline.cpp
index db9da7dfd6..8618c22093 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;
}