24 ****************************************************************************/ |
24 ****************************************************************************/ |
25 |
25 |
26 #ifndef HBTAPANDHOLDGESTURE_P_H |
26 #ifndef HBTAPANDHOLDGESTURE_P_H |
27 #define HBTAPANDHOLDGESTURE_P_H |
27 #define HBTAPANDHOLDGESTURE_P_H |
28 |
28 |
29 #ifdef HB_GESTURE_FW |
|
30 |
|
31 #include <hbglobal.h> |
29 #include <hbglobal.h> |
32 #include <QGesture> |
30 #include <QGesture> |
33 |
31 |
34 class HbTapAndHoldGesturePrivate; |
32 class HbTapAndHoldGesturePrivate; |
35 |
33 |
36 class HB_CORE_EXPORT HbTapAndHoldGesture : public QTapAndHoldGesture |
34 class HB_CORE_EXPORT HbTapAndHoldGesture : public QTapAndHoldGesture |
37 { |
35 { |
38 Q_OBJECT |
36 Q_OBJECT |
39 |
37 |
|
38 Q_PROPERTY(QPointF scenePosition READ scenePosition WRITE setScenePosition) |
|
39 |
40 public: |
40 public: |
41 HbTapAndHoldGesture(QObject* parent = NULL); |
41 HbTapAndHoldGesture(QObject* parent = NULL); |
42 virtual ~HbTapAndHoldGesture(); |
42 virtual ~HbTapAndHoldGesture(); |
43 |
43 |
44 // Data |
44 QPointF scenePosition() const; |
45 bool outsideThreshold(); |
45 void setScenePosition(const QPointF &pos); |
46 void update(QEvent& event); |
46 |
|
47 protected: |
|
48 HbTapAndHoldGesture(HbTapAndHoldGesturePrivate* data, QObject* parent = NULL); |
47 |
49 |
48 private: |
50 private: |
49 HbTapAndHoldGesturePrivate* priv; |
51 HbTapAndHoldGesturePrivate* priv; |
50 friend class HbTapAndHoldGestureRecognizer; |
52 friend class HbTapAndHoldGestureLogic; |
51 }; |
53 }; |
52 |
|
53 #endif // HB_GESTURE_FW |
|
54 |
54 |
55 #endif // HBTAPANDHOLDGESTURE_P_H |
55 #endif // HBTAPANDHOLDGESTURE_P_H |
56 |
56 |