summaryrefslogtreecommitdiffstats
path: root/src/declarative/graphicsitems/qdeclarativevisualitemmodel.cpp
diff options
context:
space:
mode:
authorMartin Jones <martin.jones@nokia.com>2010-06-28 04:18:22 (GMT)
committerMartin Jones <martin.jones@nokia.com>2010-06-28 04:18:22 (GMT)
commit3dae114528ecaed19b8ffca4739ed4e88477554e (patch)
treef741eb790b82e8b99477375d9a81bbbe34dfddfd /src/declarative/graphicsitems/qdeclarativevisualitemmodel.cpp
parentde8daddf8823213eb8312e3a404e7a499b5e5011 (diff)
downloadQt-3dae114528ecaed19b8ffca4739ed4e88477554e.zip
Qt-3dae114528ecaed19b8ffca4739ed4e88477554e.tar.gz
Qt-3dae114528ecaed19b8ffca4739ed4e88477554e.tar.bz2
VisualDataModel hasModelChildren role shadowed user roles.
Task-number: BAUHAUS-773
Diffstat (limited to 'src/declarative/graphicsitems/qdeclarativevisualitemmodel.cpp')
-rw-r--r--src/declarative/graphicsitems/qdeclarativevisualitemmodel.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/declarative/graphicsitems/qdeclarativevisualitemmodel.cpp b/src/declarative/graphicsitems/qdeclarativevisualitemmodel.cpp
index 5092349..8071d7a 100644
--- a/src/declarative/graphicsitems/qdeclarativevisualitemmodel.cpp
+++ b/src/declarative/graphicsitems/qdeclarativevisualitemmodel.cpp
@@ -283,7 +283,7 @@ public:
if (m_roles.count() == 1)
m_roleNames.insert("modelData", m_roles.at(0));
if (m_roles.count())
- m_roleNames.insert("hasModelChildren", 0);
+ m_roleNames.insert("hasModelChildren", -1);
} else if (m_listAccessor) {
m_roleNames.insert("modelData", 0);
if (m_listAccessor->type() == QDeclarativeListAccessor::Instance) {