summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBea Lam <bea.lam@nokia.com>2010-09-17 00:31:04 (GMT)
committerJason McDonald <jason.mcdonald@nokia.com>2010-09-21 05:15:48 (GMT)
commitc13d3906af8936ab7c1f4cca16edf41822b23ac9 (patch)
treefd7df19ce4b427f0eab254cc78565d60b6197913
parent2544544fd63f49c16aa5835bd47b2c39518ebbd9 (diff)
downloadQt-c13d3906af8936ab7c1f4cca16edf41822b23ac9.zip
Qt-c13d3906af8936ab7c1f4cca16edf41822b23ac9.tar.gz
Qt-c13d3906af8936ab7c1f4cca16edf41822b23ac9.tar.bz2
Fix worker agent to emit ListModel itemsChanged() correctly when set()
and setProperty() are called Task-number: QTBUG-13666 (cherry picked from commit ff075380d7ec1472fcdff06b3f39ffdc02b7f112)
-rw-r--r--src/declarative/util/qdeclarativelistmodelworkeragent.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/declarative/util/qdeclarativelistmodelworkeragent.cpp b/src/declarative/util/qdeclarativelistmodelworkeragent.cpp
index d9df169..4392bed 100644
--- a/src/declarative/util/qdeclarativelistmodelworkeragent.cpp
+++ b/src/declarative/util/qdeclarativelistmodelworkeragent.cpp
@@ -232,7 +232,7 @@ bool QDeclarativeListModelWorkerAgent::event(QEvent *e)
emit m_orig->itemsMoved(change.index, change.to, change.count);
break;
case Change::Changed:
- emit m_orig->itemsChanged(change.index, change.to, orig->m_roles.keys());
+ emit m_orig->itemsChanged(change.index, change.count, orig->m_roles.keys());
break;
}
}