src/hbwidgets/itemviews/hbtumbleview.h
changeset 34 ed14f46c0e55
parent 3 11d3954df52a
equal deleted inserted replaced
31:7516d6d86cf5 34:ed14f46c0e55
    53     void setGeometry(const QRectF &rect);
    53     void setGeometry(const QRectF &rect);
    54 
    54 
    55     void setLoopingEnabled(bool enabled);
    55     void setLoopingEnabled(bool enabled);
    56     bool isLoopingEnabled() const;
    56     bool isLoopingEnabled() const;
    57 
    57 
       
    58     QGraphicsItem *primitive(const QString &itemName) const;
       
    59 
    58     enum { Type = Hb::ItemType_TumbleView };
    60     enum { Type = Hb::ItemType_TumbleView };
    59     int type() const { return Type; }
    61     int type() const { return Type; }
    60 
       
    61     QGraphicsItem *primitive(HbStyle::Primitive) const;
       
    62     QGraphicsItem *primitive(const QString &itemName) const;
       
    63 
    62 
    64 public slots:
    63 public slots:
    65     void updatePrimitives();
    64     void updatePrimitives();
    66 
    65 
    67 signals:
    66 signals:
    83     QVariant itemChange(GraphicsItemChange change,const QVariant &value);
    82     QVariant itemChange(GraphicsItemChange change,const QVariant &value);
    84     void dataChanged(const QModelIndex &topLeft, const QModelIndex &bottomRight);
    83     void dataChanged(const QModelIndex &topLeft, const QModelIndex &bottomRight);
    85     void gestureEvent(QGestureEvent *event);
    84     void gestureEvent(QGestureEvent *event);
    86 
    85 
    87     bool event(QEvent *e);
    86     bool event(QEvent *e);
       
    87     void initPrimitiveData(HbStylePrimitiveData *primitiveData, const QGraphicsObject *primitive);
    88 
    88 
    89 private:
    89 private:
    90     Q_DECLARE_PRIVATE_D(d_ptr,HbTumbleView)
    90     Q_DECLARE_PRIVATE_D(d_ptr,HbTumbleView)
    91     Q_DISABLE_COPY(HbTumbleView)
    91     Q_DISABLE_COPY(HbTumbleView)
    92     Q_PRIVATE_SLOT(d_func(), void _q_scrollingStarted())
    92     Q_PRIVATE_SLOT(d_func(), void _q_scrollingStarted())