src/hbwidgets/itemviews/hblistitemcontainer_p.cpp
changeset 28 b7da29130b0e
parent 23 e6ad4ef83b23
equal deleted inserted replaced
23:e6ad4ef83b23 28:b7da29130b0e
    33 #include "hblistview.h"
    33 #include "hblistview.h"
    34 #include "hbmodeliterator.h"
    34 #include "hbmodeliterator.h"
    35 
    35 
    36 #include <qmath.h>
    36 #include <qmath.h>
    37 #include <QDebug>
    37 #include <QDebug>
       
    38 #include <QMetaObject>
    38 
    39 
    39 const int Hb_Recycle_Buffer_Shrink_Threshold = 2; // Rather arbitrary
    40 const int Hb_Recycle_Buffer_Shrink_Threshold = 2; // Rather arbitrary
    40 
    41 
    41 HbListItemContainerPrivate::HbListItemContainerPrivate() :
    42 HbListItemContainerPrivate::HbListItemContainerPrivate() :
    42     HbAbstractItemContainerPrivate(),
    43     HbAbstractItemContainerPrivate(),
   516             setPos(newPos);
   517             setPos(newPos);
   517         }
   518         }
   518 
   519 
   519         d->adjustContent();
   520         d->adjustContent();
   520     } else {
   521     } else {
   521         item->deleteLater();
   522         item->hide();
       
   523         QMetaObject::invokeMethod(item, "deleteLater", Qt::QueuedConnection);
   522     }
   524     }
   523 }
   525 }
   524 
   526 
   525 /*!
   527 /*!
   526     \reimp
   528     \reimp