src/hbwidgets/itemviews/hbabstractitemcontainer_p.h
changeset 1 f7ac710697a9
parent 0 16d8024aca5e
child 2 06ff229162e9
equal deleted inserted replaced
0:16d8024aca5e 1:f7ac710697a9
    26 #ifndef HBABSTRACTITEMCONTAINERPRIVATE_H
    26 #ifndef HBABSTRACTITEMCONTAINERPRIVATE_H
    27 #define HBABSTRACTITEMCONTAINERPRIVATE_H
    27 #define HBABSTRACTITEMCONTAINERPRIVATE_H
    28 
    28 
    29 #include "hbwidget_p.h"
    29 #include "hbwidget_p.h"
    30 #include "hbabstractitemcontainer.h"
    30 #include "hbabstractitemcontainer.h"
       
    31 #include "hbabstractviewitem.h"
    31 
    32 
    32 #include <QPersistentModelIndex>
    33 #include <QPersistentModelIndex>
    33 
    34 
    34 class HbAbstractViewItem;
    35 class HbAbstractViewItem;
    35 class HbAbstractItemView;
    36 class HbAbstractItemView;
       
    37 
       
    38 #include <QHash>
    36 
    39 
    37 class HbAbstractItemContainerPrivate : public HbWidgetPrivate
    40 class HbAbstractItemContainerPrivate : public HbWidgetPrivate
    38 {
    41 {
    39     Q_DECLARE_PUBLIC(HbAbstractItemContainer)
    42     Q_DECLARE_PUBLIC(HbAbstractItemContainer)
    40 
    43 
    78     void deleteItem(HbAbstractViewItem *item, bool animate = false);
    81     void deleteItem(HbAbstractViewItem *item, bool animate = false);
    79 
    82 
    80     virtual bool intoContainerBuffer(const QModelIndex &index) const; 
    83     virtual bool intoContainerBuffer(const QModelIndex &index) const; 
    81     virtual int containerBufferIndexForModelIndex(const QModelIndex &index) const;
    84     virtual int containerBufferIndexForModelIndex(const QModelIndex &index) const;
    82 
    85 
       
    86     virtual qreal getDiffWithoutScrollareaCompensation(const QPointF &delta) const;
       
    87 
       
    88     void restoreItemPosition(HbAbstractViewItem *item, const QPointF &position);
       
    89 
       
    90     void insertItem(HbAbstractViewItem *item, int pos, const QModelIndex &index, bool animate);
       
    91 
    83     mutable QList<HbAbstractViewItem*>  mPrototypes;
    92     mutable QList<HbAbstractViewItem*>  mPrototypes;
    84     QList<StateItem> mItemStateList;
    93     QList<StateItem> mItemStateList;
       
    94     QHash<QPersistentModelIndex, QHash<QString, QVariant> > mItemStates;
    85 
    95 
    86     QList<HbAbstractViewItem*>  mItems;
    96     QList<HbAbstractViewItem*>  mItems;
    87     HbAbstractItemView *mItemView;
    97     HbAbstractItemView *mItemView;
    88 
    98 
    89     int mBufferSize;
    99     int mBufferSize;