summaryrefslogtreecommitdiff
path: root/src/plugins/qmljseditor/qmljsoutline.cpp
diff options
context:
space:
mode:
authorKai Koehne <kai.koehne@nokia.com>2010-07-09 15:27:32 +0200
committerKai Koehne <kai.koehne@nokia.com>2010-07-09 15:27:32 +0200
commit0f8a491e7a3b24a88290e4f4834a3cc1711ed191 (patch)
treec945903654e5937221bfa0019d472a7681cf4d81 /src/plugins/qmljseditor/qmljsoutline.cpp
parent8acde74d79672137366258c79eb512a2fbcfac8e (diff)
downloadqt-creator-0f8a491e7a3b24a88290e4f4834a3cc1711ed191.tar.gz
Make sure current index is always visible in Outline QTreeViews
Diffstat (limited to 'src/plugins/qmljseditor/qmljsoutline.cpp')
-rw-r--r--src/plugins/qmljseditor/qmljsoutline.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/plugins/qmljseditor/qmljsoutline.cpp b/src/plugins/qmljseditor/qmljsoutline.cpp
index d808a2e2d1..2511210086 100644
--- a/src/plugins/qmljseditor/qmljsoutline.cpp
+++ b/src/plugins/qmljseditor/qmljsoutline.cpp
@@ -337,6 +337,7 @@ void QmlJSOutlineWidget::updateSelectionInTree()
m_blockCursorSync = true;
m_treeView->selectionModel()->select(index, QItemSelectionModel::ClearAndSelect);
+ m_treeView->scrollTo(index);
m_blockCursorSync = false;
}