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

@@ -49,6 +49,8 @@ void QmlJSOutlineWidget::setEditor(QmlJSTextEditor *editor)
m_editor = editor;
m_treeView->setModel(m_editor.data()->outlineModel());
modelUpdated();
connect(m_treeView->selectionModel(), SIGNAL(selectionChanged(QItemSelection,QItemSelection)),
this, SLOT(updateSelectionInText(QItemSelection)));