src/hbcore/gestures/hbswipegesture.cpp
changeset 34 ed14f46c0e55
parent 6 c3690ec91ef8
equal deleted inserted replaced
31:7516d6d86cf5 34:ed14f46c0e55
    21 ** If you have questions regarding the use of this file, please contact
    21 ** If you have questions regarding the use of this file, please contact
    22 ** Nokia at developer.feedback@nokia.com.
    22 ** Nokia at developer.feedback@nokia.com.
    23 **
    23 **
    24 ****************************************************************************/
    24 ****************************************************************************/
    25 
    25 
       
    26 #include "hbswipegesture.h"
    26 #include "hbgestures_p.h"
    27 #include "hbgestures_p.h"
    27 #include "hbswipegesture.h"
       
    28 #include "hbswipegesture_p.h"
       
    29 #include "hbglobal_p.h"
    28 #include "hbglobal_p.h"
    30 #include <QPointF>
    29 #include <QPointF>
    31 #include <QVariant>
    30 #include <QVariant>
    32 
    31 
    33 /*!
    32 /*!
   119 HbSwipeGesture::HbSwipeGesture(QObject *parent)
   118 HbSwipeGesture::HbSwipeGesture(QObject *parent)
   120     : QSwipeGesture(parent), d_ptr(new HbSwipeGesturePrivate)
   119     : QSwipeGesture(parent), d_ptr(new HbSwipeGesturePrivate)
   121 
   120 
   122 {   
   121 {   
   123     d_ptr->mSceneSwipeAngle = 0;
   122     d_ptr->mSceneSwipeAngle = 0;
       
   123     d_ptr->mTime.start();
   124 }
   124 }
   125 
   125 
   126 /*!
   126 /*!
   127     Constructor required by the shared d-pointer paradigm.
   127     Constructor required by the shared d-pointer paradigm.
   128     \param dd Private data
   128     \param dd Private data
   190 */
   190 */
   191 void HbSwipeGesture::setSceneSwipeAngle(qreal value)
   191 void HbSwipeGesture::setSceneSwipeAngle(qreal value)
   192 {
   192 {
   193     d_ptr->mSceneSwipeAngle = value;
   193     d_ptr->mSceneSwipeAngle = value;
   194 }
   194 }
   195 
       
   196 
       
   197 /*!
       
   198     \deprecated
       
   199     Returns the speed.
       
   200 */
       
   201 qreal HbSwipeGesture::speed() const
       
   202 {    
       
   203     HB_DEPRECATED("HbSwipeGesture::speed is deprecated");
       
   204     return 1;
       
   205 }
       
   206 
       
   207 /*!
       
   208     \deprecated
       
   209     Sets the speed.
       
   210 */
       
   211 void HbSwipeGesture::setSpeed(qreal speed)
       
   212 {
       
   213     Q_UNUSED (speed);
       
   214     HB_DEPRECATED("HbSwipeGesture::setSpeed is deprecated");
       
   215 }
       
   216 
       
   217 /*!
       
   218     \deprecated
       
   219     Returns the touchPointCount.
       
   220 */
       
   221 int HbSwipeGesture::touchPointCount() const
       
   222 {
       
   223     HB_DEPRECATED("HbSwipeGesture::touchPointCount is deprecated");
       
   224     return 0;
       
   225 }
       
   226 
       
   227 /*!
       
   228     \deprecated
       
   229     Sets the touchPointCount.
       
   230 */
       
   231 void HbSwipeGesture::setTouchPointCount(int touchPointCount)
       
   232 {
       
   233     HB_DEPRECATED("HbSwipeGesture::setTouchPointCount is deprecated");
       
   234     Q_UNUSED(touchPointCount)
       
   235 }