diff -r 7516d6d86cf5 -r ed14f46c0e55 src/hbwidgets/itemviews/hbtreeitemcontainer_p.cpp --- a/src/hbwidgets/itemviews/hbtreeitemcontainer_p.cpp Mon Oct 04 17:49:30 2010 +0300 +++ b/src/hbwidgets/itemviews/hbtreeitemcontainer_p.cpp Mon Oct 18 18:23:13 2010 +0300 @@ -35,6 +35,7 @@ #include #include +#include const int Hb_Recycle_Buffer_Shrink_Threshold = 2; @@ -526,7 +527,6 @@ Q_D(HbTreeItemContainer); HbAbstractViewItem *item = static_cast(status.item); - item->setFlag(QGraphicsItem::ItemSendsGeometryChanges, false); // Remove item from mAnimatedItems list. int itemCount = d->mAnimatedItems.count(); @@ -566,8 +566,10 @@ newPos.setY(newPos.y() - item->preferredHeight()); setPos(newPos); } + d->adjustContent(); } else { - item->deleteLater(); + item->hide(); + QMetaObject::invokeMethod(item, "deleteLater", Qt::QueuedConnection); } }