diff options
author | Andrew den Exter <andrew.den-exter@nokia.com> | 2011-06-22 16:22:48 +1000 |
---|---|---|
committer | Andrew den Exter <andrew.den-exter@nokia.com> | 2011-06-22 16:22:48 +1000 |
commit | 5a794a7de0508115efa1ff2b056e3744c8e2afec (patch) | |
tree | 396e63b47ab2d97be89b99e732e89a6dc5cb31a6 | |
parent | 1701b535a392c1c601faf31cb414b710700bb179 (diff) |
Fix external items not showing in ListView without a transition.
Need to set the parentItem() if it's not done by the transition.
-rw-r--r-- | src/declarative/items/qsglistview.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/declarative/items/qsglistview.cpp b/src/declarative/items/qsglistview.cpp index e5b53ea148..8d3ba6dfa4 100644 --- a/src/declarative/items/qsglistview.cpp +++ b/src/declarative/items/qsglistview.cpp @@ -2960,6 +2960,8 @@ void QSGListView::itemsInserted(int modelIndex, int count) transition->addItem(item, item->positionIfMovedTo(pos, true), contentItem()); d->indexesInTransition.insert(item->index); } else { + if (item->item->parentItem() != contentItem()) + item->item->setParentItem(contentItem()); item->setPosition(pos); } added.append(item); |