diff options
author | Kai Koehne <kai.koehne@nokia.com> | 2010-08-25 15:31:25 +0200 |
---|---|---|
committer | Kai Koehne <kai.koehne@nokia.com> | 2010-08-25 15:32:02 +0200 |
commit | 3a87261193fcfaa40880de11f53e38b0ef6fbbc7 (patch) | |
tree | 7019c4f8f9877b04f21019b229db9a8ce3fa889e /src/plugins/qmljseditor/qmljsoutline.cpp | |
parent | 58892081dec613b89394f10f9d78b9d84b0d5a48 (diff) | |
download | qt-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.cpp | 2 |
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; } |