radioapp/radiowidgets/inc/radiostripbase.h
changeset 16 f54ebcfc1b80
parent 14 63aabac4416d
child 19 afea38384506
equal deleted inserted replaced
14:63aabac4416d 16:f54ebcfc1b80
    27 
    27 
    28 // Class declaration
    28 // Class declaration
    29 class RadioStripBase : public HbScrollArea
    29 class RadioStripBase : public HbScrollArea
    30 {
    30 {
    31     Q_OBJECT
    31     Q_OBJECT
    32     Q_PROPERTY( HbIcon background READ background WRITE setBackground )
       
    33     Q_PROPERTY( int autoScrollTime READ autoScrollTime WRITE setAutoScrollTime )
    32     Q_PROPERTY( int autoScrollTime READ autoScrollTime WRITE setAutoScrollTime )
    34 
    33 
    35 public:
    34 public:
    36 
    35 
    37     virtual ~RadioStripBase();
    36     virtual ~RadioStripBase();
    38 
    37 
    39     void setBackground( const HbIcon& background );
       
    40     HbIcon background() const;
       
    41     void setAutoScrollTime( const int time );
    38     void setAutoScrollTime( const int time );
    42     int autoScrollTime() const;
    39     int autoScrollTime() const;
    43 
    40 
    44     void setModel( QAbstractItemModel* model );
    41     void setModel( QAbstractItemModel* model );
    45     QAbstractItemModel* model() const;
    42     QAbstractItemModel* model() const;
   121     qreal                   mContentsLength;
   118     qreal                   mContentsLength;
   122 
   119 
   123     QList<QGraphicsItem*>   mItemAtSlot;
   120     QList<QGraphicsItem*>   mItemAtSlot;
   124     QList<int>              mIndexAtSlot; // Can be bigger than rowcount if cyclic is used
   121     QList<int>              mIndexAtSlot; // Can be bigger than rowcount if cyclic is used
   125 
   122 
   126     HbIcon                  mBackground;
       
   127 
       
   128     QGraphicsPixmapItem*    mBackgroundImage;
       
   129 
       
   130 };
   123 };
   131 
   124 
   132 
   125 
   133 #endif // RADIOSTRIPBASE_H_
   126 #endif // RADIOSTRIPBASE_H_