OSDN Git Service
(root)
/
qt-creator-jp
/
qt-creator-jp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0166f49
)
QmlOutline: Always reset views
author
Kai Koehne
<kai.koehne@nokia.com>
Wed, 25 Aug 2010 10:24:47 +0000
(12:24 +0200)
committer
Kai 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
patch
|
blob
|
history
diff --git
a/src/plugins/qmljseditor/qmloutlinemodel.cpp
b/src/plugins/qmljseditor/qmloutlinemodel.cpp
index
9504932
..
cdcb34c
100644
(file)
--- a/
src/plugins/qmljseditor/qmloutlinemodel.cpp
+++ b/
src/plugins/qmljseditor/qmloutlinemodel.cpp
@@
-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();