src/hbcore/gui/hbscrollarea.cpp
changeset 6 c3690ec91ef8
parent 3 11d3954df52a
child 7 923ff622b8b9
equal deleted inserted replaced
5:627c4a0fd0e7 6:c3690ec91ef8
   220 
   220 
   221     This is the default behavior.
   221     This is the default behavior.
   222 */
   222 */
   223 
   223 
   224 /*!
   224 /*!
       
   225     \primitives
       
   226     \primitives{continuation-indicator-bottom} HbFrameItem representing the scrollarea continuation indicator on the bottom of the scrollarea.
       
   227     \primitives{continuation-indicator-top} HbFrameItem representing the scrollarea continuation indicator on the top of the scrollarea.
       
   228     \primitives{continuation-indicator-left} HbFrameItem representing the scrollarea continuation indicator on the left side of the scrollarea.
       
   229     \primitives{continuation-indicator-right} HbFrameItem representing the scrollarea continuation indicator on the right side of the scrollarea.
       
   230   */
       
   231 
       
   232 /*!
   225   Constructor
   233   Constructor
   226  
   234  
   227   \sa HbScrollArea::HbScrollArea
   235   \sa HbScrollArea::HbScrollArea
   228  */
   236  */
   229 HbScrollArea::HbScrollArea(QGraphicsItem* parent) : 
   237 HbScrollArea::HbScrollArea(QGraphicsItem* parent) : 
   232     Q_D( HbScrollArea );
   240     Q_D( HbScrollArea );
   233     d->q_ptr = this;
   241     d->q_ptr = this;
   234     d->init();
   242     d->init();
   235 }
   243 }
   236 
   244 
       
   245 /*!
       
   246   Protected constructor.
       
   247   */
   237 HbScrollArea::HbScrollArea(HbScrollAreaPrivate &dd, QGraphicsItem *parent):
   248 HbScrollArea::HbScrollArea(HbScrollAreaPrivate &dd, QGraphicsItem *parent):
   238         HbWidget( dd, parent  )
   249         HbWidget( dd, parent  )
   239 {
   250 {
   240     Q_D( HbScrollArea );
   251     Q_D( HbScrollArea );
   241     d->q_ptr = this;
   252     d->q_ptr = this;
   617 void HbScrollArea::longPressGesture(const QPointF &)
   628 void HbScrollArea::longPressGesture(const QPointF &)
   618 {
   629 {
   619     HB_DEPRECATED("HbScrollArea::longPressGesture(const QPointF &) is deprecated. Use gesture FW.");
   630     HB_DEPRECATED("HbScrollArea::longPressGesture(const QPointF &) is deprecated. Use gesture FW.");
   620 }
   631 }
   621 
   632 
   622 /*
   633 /*!
   623     \reimp
   634     \reimp
   624 */
   635  */
   625 void HbScrollArea::mousePressEvent(QGraphicsSceneMouseEvent *event)
   636 void HbScrollArea::mousePressEvent(QGraphicsSceneMouseEvent *event)
   626 {
   637 {
   627     Q_UNUSED (event);
   638     Q_UNUSED (event);
   628 }
   639 }
   629 
   640 
   837 /*!
   848 /*!
   838     Returns the scrollbar policy for vertical scrollbar
   849     Returns the scrollbar policy for vertical scrollbar
   839 
   850 
   840     \sa horizontalScrollBarPolicy(), setVerticalScrollBarPolicy()
   851     \sa horizontalScrollBarPolicy(), setVerticalScrollBarPolicy()
   841 */
   852 */
   842 
       
   843 HbScrollArea::ScrollBarPolicy HbScrollArea::verticalScrollBarPolicy() const
   853 HbScrollArea::ScrollBarPolicy HbScrollArea::verticalScrollBarPolicy() const
   844 {
   854 {
   845     Q_D(const HbScrollArea);
   855     Q_D(const HbScrollArea);
   846     return d->mVerticalScrollBarPolicy;
   856     return d->mVerticalScrollBarPolicy;
   847 }
   857 }
   894 /*!
   904 /*!
   895     \brief Returns the policy for horizontal scrollbar
   905     \brief Returns the policy for horizontal scrollbar
   896 
   906 
   897     \sa verticalScrollBarPolicy(), setHorizontalScrollBarPolicy()
   907     \sa verticalScrollBarPolicy(), setHorizontalScrollBarPolicy()
   898 */
   908 */
   899 
       
   900 HbScrollArea::ScrollBarPolicy HbScrollArea::horizontalScrollBarPolicy() const
   909 HbScrollArea::ScrollBarPolicy HbScrollArea::horizontalScrollBarPolicy() const
   901 {
   910 {
   902     Q_D(const HbScrollArea);
   911     Q_D(const HbScrollArea);
   903     return d->mHorizontalScrollBarPolicy;
   912     return d->mHorizontalScrollBarPolicy;
   904 }
   913 }
  1048         d->stopScrolling();
  1057         d->stopScrolling();
  1049 
  1058 
  1050     }
  1059     }
  1051 }
  1060 }
  1052 
  1061 
  1053 /*
  1062 /*!
  1054   \reimp
  1063   \reimp
  1055  */
  1064  */
  1056 void HbScrollArea::polish(HbStyleParameters& params)
  1065 void HbScrollArea::polish(HbStyleParameters& params)
  1057 {
  1066 {
  1058     Q_D(HbScrollArea);
  1067     Q_D(HbScrollArea);