diff options
author | Martin Jones <martin.jones@nokia.com> | 2010-06-28 04:18:22 (GMT) |
---|---|---|
committer | Martin Jones <martin.jones@nokia.com> | 2010-06-28 04:18:22 (GMT) |
commit | 3dae114528ecaed19b8ffca4739ed4e88477554e (patch) | |
tree | f741eb790b82e8b99477375d9a81bbbe34dfddfd /src/declarative/graphicsitems/qdeclarativevisualitemmodel.cpp | |
parent | de8daddf8823213eb8312e3a404e7a499b5e5011 (diff) | |
download | Qt-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.cpp | 2 |
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) { |