src/hbwidgets/itemviews/hbabstractitemcontainer.h
changeset 1 f7ac710697a9
parent 0 16d8024aca5e
equal deleted inserted replaced
0:16d8024aca5e 1:f7ac710697a9
    66 
    66 
    67     QList<HbAbstractViewItem *> itemPrototypes() const;
    67     QList<HbAbstractViewItem *> itemPrototypes() const;
    68     bool setItemPrototype(HbAbstractViewItem *prototype);
    68     bool setItemPrototype(HbAbstractViewItem *prototype);
    69     bool setItemPrototypes(const QList<HbAbstractViewItem *> &prototypes);
    69     bool setItemPrototypes(const QList<HbAbstractViewItem *> &prototypes);
    70 
    70 
       
    71     void setItemTransientState(const QModelIndex &index, QHash<QString,QVariant> state);
       
    72     void setItemTransientStateValue(const QModelIndex &index, const QString &key, const QVariant &value);
       
    73 
    71     void setItemState(const QModelIndex &index, QMap<int,QVariant> state);
    74     void setItemState(const QModelIndex &index, QMap<int,QVariant> state);
    72     void setItemStateValue(const QModelIndex &index, int key, QVariant value);
    75     void setItemStateValue(const QModelIndex &index, int key, QVariant value);
    73 
    76 
    74     QMap<int,QVariant> itemState(const QModelIndex &index) const;
    77     QMap<int,QVariant> itemState(const QModelIndex &index) const;
       
    78     QHash<QString, QVariant> itemTransientState(const QModelIndex &index) const;
    75 
    79 
    76     void removeItemStates();
    80     void removeItemStates();
       
    81     void removeItemTransientStates();
    77 
    82 
    78     void setItemRecycling(bool enabled);
    83     void setItemRecycling(bool enabled);
    79     bool itemRecycling() const;
    84     bool itemRecycling() const;
    80 
    85 
    81     void setUniformItemSizes(bool enable);
    86     virtual void setUniformItemSizes(bool enable);
    82     bool uniformItemSizes() const;
    87     bool uniformItemSizes() const;
    83 
    88 
    84     virtual bool eventFilter(QObject *obj, QEvent *event);
    89     virtual bool eventFilter(QObject *obj, QEvent *event);
    85 
    90 
    86     enum { Type = Hb::ItemType_AbstractItemContainer };
    91     enum { Type = Hb::ItemType_AbstractItemContainer };
    87     int type() const;
    92     int type() const;
       
    93 
       
    94 signals:
       
    95 
       
    96     void itemCreated(HbAbstractViewItem *item);
    88 
    97 
    89 protected:
    98 protected:
    90 
    99 
    91     HbAbstractItemContainer(HbAbstractItemContainerPrivate &dd, QGraphicsItem *parent);
   100     HbAbstractItemContainer(HbAbstractItemContainerPrivate &dd, QGraphicsItem *parent);
    92 
   101