OSDN Git Service

QmlOutline: Always reset views
authorKai Koehne <kai.koehne@nokia.com>
Wed, 25 Aug 2010 10:24:47 +0000 (12:24 +0200)
committerKai Koehne <kai.koehne@nokia.com>
Wed, 25 Aug 2010 10:25:22 +0000 (12:25 +0200)
The incremental update is not working as expected.

src/plugins/qmljseditor/qmloutlinemodel.cpp

index 9504932..cdcb34c 100644 (file)
@@ -383,7 +383,10 @@ void QmlOutlineModel::update(const SemanticInfo &semanticInfo)
     m_typeToIcon.clear();
 
     QmlOutlineModelSync syncModel(this);
+
+    beginResetModel();
     syncModel(m_semanticInfo.document);
+    endResetModel();
 
     m_context.clear();