aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew den Exter <andrew.den-exter@nokia.com>2011-06-22 16:22:48 +1000
committerAndrew den Exter <andrew.den-exter@nokia.com>2011-06-22 16:22:48 +1000
commit5a794a7de0508115efa1ff2b056e3744c8e2afec (patch)
tree396e63b47ab2d97be89b99e732e89a6dc5cb31a6
parent1701b535a392c1c601faf31cb414b710700bb179 (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.cpp2
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);