QmlOutline: Make sure tree view is always expanded

This commit is contained in:
Kai Koehne
2010-07-14 13:01:39 +02:00
parent 5574a13849
commit fe82dd7ff7
2 changed files with 6 additions and 3 deletions

View File

@@ -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) {