forked from qt-creator/qt-creator
QmlOutline: Always reset views
The incremental update is not working as expected.
This commit is contained in:
@@ -383,7 +383,10 @@ void QmlOutlineModel::update(const SemanticInfo &semanticInfo)
|
|||||||
m_typeToIcon.clear();
|
m_typeToIcon.clear();
|
||||||
|
|
||||||
QmlOutlineModelSync syncModel(this);
|
QmlOutlineModelSync syncModel(this);
|
||||||
|
|
||||||
|
beginResetModel();
|
||||||
syncModel(m_semanticInfo.document);
|
syncModel(m_semanticInfo.document);
|
||||||
|
endResetModel();
|
||||||
|
|
||||||
m_context.clear();
|
m_context.clear();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user