QmlJSEditor: Use QmlOutline model also in combo box

The drop down combo box and the Outline in the sidebar now share
the same model.
This commit is contained in:
Kai Koehne
2010-07-12 14:45:22 +02:00
parent 9d803829eb
commit 94264617bf
6 changed files with 103 additions and 103 deletions

View File

@@ -124,6 +124,8 @@ void QmlOutlineModel::update(QmlJS::Document::Ptr doc)
QmlOutlineModelSync syncModel(this);
syncModel(doc);
emit updated();
}
QModelIndex QmlOutlineModel::enterElement(const QString &type, const AST::SourceLocation &sourceLocation)