forked from qt-creator/qt-creator
QmlOutline: Make sure tree view is always expanded
This commit is contained in:
@@ -856,6 +856,10 @@ void QmlJSTextEditor::updateOutlineNow()
|
||||
}
|
||||
|
||||
m_outlineModel->update(document, snapshot);
|
||||
|
||||
QTreeView *treeView = static_cast<QTreeView*>(m_outlineCombo->view());
|
||||
treeView->expandAll();
|
||||
|
||||
updateOutlineIndexNow();
|
||||
}
|
||||
|
||||
@@ -1401,9 +1405,6 @@ void QmlJSTextEditor::updateSemanticInfo(const SemanticInfo &semanticInfo)
|
||||
FindDeclarations findDeclarations;
|
||||
m_semanticInfo.declarations = findDeclarations(doc->ast());
|
||||
|
||||
QTreeView *treeView = static_cast<QTreeView*>(m_outlineCombo->view());
|
||||
treeView->expandAll();
|
||||
|
||||
if (m_contextPane) {
|
||||
Node *newNode = m_semanticInfo.declaringMember(position());
|
||||
if (newNode) {
|
||||
|
||||
Reference in New Issue
Block a user