forked from qt-creator/qt-creator
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user