28 #include "hbtapandholdgesture.h" |
28 #include "hbtapandholdgesture.h" |
29 |
29 |
30 #include <QObject> |
30 #include <QObject> |
31 |
31 |
32 /*! |
32 /*! |
33 \internal |
33 @hbcore |
34 \class HbTapAndHoldGesture |
34 \class HbTapAndHoldGesture |
35 |
35 |
36 \brief HbTapAndHoldGesture implements a gesture for tap and hold. |
36 \brief HbTapAndHoldGesture is an extension to Qt standard QTapAndHoldGesture |
|
37 \sa QTapAndHoldGesture |
37 */ |
38 */ |
38 |
39 |
|
40 /*! |
|
41 \brief HbTapAndHoldGesture constructor |
|
42 \param parent Parent for the gesture |
|
43 */ |
39 HbTapAndHoldGesture::HbTapAndHoldGesture(QObject* parent) |
44 HbTapAndHoldGesture::HbTapAndHoldGesture(QObject* parent) |
40 : |
45 : |
41 QTapAndHoldGesture(parent) |
46 QTapAndHoldGesture(parent) |
42 { |
47 { |
43 priv = new HbTapAndHoldGesturePrivate(this); |
48 priv = new HbTapAndHoldGesturePrivate(this); |
44 } |
49 } |
45 |
50 |
46 HbTapAndHoldGesture::HbTapAndHoldGesture(HbTapAndHoldGesturePrivate* data, QObject* parent) |
51 /*! |
|
52 \brief HbTapAndHoldGesture constructor |
|
53 \param dd Custom private data |
|
54 \param parent Parent for the gesture |
|
55 */ |
|
56 HbTapAndHoldGesture::HbTapAndHoldGesture(HbTapAndHoldGesturePrivate* dd, QObject* parent) |
47 : |
57 : |
48 QTapAndHoldGesture(parent), |
58 QTapAndHoldGesture(parent), |
49 priv(data) |
59 priv(dd) |
50 { |
60 { |
51 priv->q_ptr = this; |
61 priv->q_ptr = this; |
52 } |
62 } |
53 |
63 |
|
64 /*! |
|
65 \brief HbTapAndHoldGesture destructor |
|
66 */ |
54 HbTapAndHoldGesture::~HbTapAndHoldGesture() |
67 HbTapAndHoldGesture::~HbTapAndHoldGesture() |
55 { |
68 { |
56 delete priv; priv = NULL; |
69 delete priv; priv = NULL; |
57 } |
70 } |
58 |
71 |
|
72 /*! |
|
73 \property scenePosition |
|
74 |
|
75 Current position of the gesture. |
|
76 \sa QTapAndHoldGesture::position() |
|
77 */ |
59 QPointF HbTapAndHoldGesture::scenePosition() const |
78 QPointF HbTapAndHoldGesture::scenePosition() const |
60 { |
79 { |
61 return priv->mScenePos; |
80 return priv->mScenePos; |
62 } |
81 } |
63 |
82 |