Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Marco Bubke
flatpak-qt-creator
Commits
0f8a491e
Commit
0f8a491e
authored
Jul 09, 2010
by
Kai Koehne
Browse files
Make sure current index is always visible in Outline QTreeViews
parent
8acde74d
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/plugins/cppeditor/cppoutline.cpp
View file @
0f8a491e
...
...
@@ -105,6 +105,7 @@ void CppOutlineWidget::updateSelectionInTree(const QModelIndex &index)
qDebug
()
<<
"CppOutline - updating selection due to cursor move"
;
m_treeView
->
selectionModel
()
->
select
(
proxyIndex
,
QItemSelectionModel
::
ClearAndSelect
);
m_treeView
->
scrollTo
(
proxyIndex
);
m_blockCursorSync
=
false
;
}
...
...
src/plugins/qmljseditor/qmljsoutline.cpp
View file @
0f8a491e
...
...
@@ -337,6 +337,7 @@ void QmlJSOutlineWidget::updateSelectionInTree()
m_blockCursorSync
=
true
;
m_treeView
->
selectionModel
()
->
select
(
index
,
QItemSelectionModel
::
ClearAndSelect
);
m_treeView
->
scrollTo
(
index
);
m_blockCursorSync
=
false
;
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment