equal
deleted
inserted
replaced
29 #include <hbabstractitemview.h> |
29 #include <hbabstractitemview.h> |
30 #include <hbabstractitemview_p.h> |
30 #include <hbabstractitemview_p.h> |
31 #include <hbgriditemcontainer_p_p.h> |
31 #include <hbgriditemcontainer_p_p.h> |
32 #include <hbmodeliterator.h> |
32 #include <hbmodeliterator.h> |
33 |
33 |
|
34 #include <QMetaObject> |
|
35 |
34 /*! |
36 /*! |
35 \class HbGridItemContainer |
37 \class HbGridItemContainer |
36 \brief HbGridItemContainer implements HbAbstractItemContainer. |
38 \brief HbGridItemContainer implements HbAbstractItemContainer. |
37 @internal |
39 @internal |
38 |
40 |
511 break; |
513 break; |
512 } |
514 } |
513 } |
515 } |
514 |
516 |
515 d->mLayout->removeItem(item, true); |
517 d->mLayout->removeItem(item, true); |
516 item->deleteLater(); |
518 item->hide(); |
|
519 QMetaObject::invokeMethod(item, "deleteLater", Qt::QueuedConnection); |
517 } |
520 } |
518 |
521 |
519 void HbGridItemContainer::layoutAnimationFinished(QGraphicsLayoutItem *item, HbGridLayout::AnimationType animationType) |
522 void HbGridItemContainer::layoutAnimationFinished(QGraphicsLayoutItem *item, HbGridLayout::AnimationType animationType) |
520 { |
523 { |
521 Q_D(HbGridItemContainer); |
524 Q_D(HbGridItemContainer); |