equal
deleted
inserted
replaced
39 |
39 |
40 #include <QGraphicsSceneMouseEvent> |
40 #include <QGraphicsSceneMouseEvent> |
41 #include <QCoreApplication> |
41 #include <QCoreApplication> |
42 #include <QGraphicsScene> |
42 #include <QGraphicsScene> |
43 #include <QGestureRecognizer> |
43 #include <QGestureRecognizer> |
|
44 |
44 #include <hbgesturerecognizers_p.h> |
45 #include <hbgesturerecognizers_p.h> |
|
46 #include <hbgestures_p.h> |
45 |
47 |
46 class HbTapDelayGesture:public HbTapGesture |
48 class HbTapDelayGesture:public HbTapGesture |
47 { |
49 { |
48 public: |
50 public: |
49 using HbTapGesture::d_ptr; |
51 using HbTapGesture::d_ptr; |
51 Q_DECLARE_PRIVATE_D(d_ptr, HbTapGesture); |
53 Q_DECLARE_PRIVATE_D(d_ptr, HbTapGesture); |
52 }; |
54 }; |
53 class HbTapDelayGestureRecognizer : public HbTapGestureRecognizer |
55 class HbTapDelayGestureRecognizer : public HbTapGestureRecognizer |
54 { |
56 { |
55 public: |
57 public: |
56 explicit HbTapDelayGestureRecognizer(){}; |
58 explicit HbTapDelayGestureRecognizer(){} |
57 virtual ~HbTapDelayGestureRecognizer() |
59 virtual ~HbTapDelayGestureRecognizer() |
58 { |
60 { |
59 int i = 0; |
61 int i = 0; |
60 i++; |
62 i++; |
61 }; |
63 }; |
845 \reimp |
847 \reimp |
846 */ |
848 */ |
847 |
849 |
848 void HbDataForm::showEvent(QShowEvent * event) |
850 void HbDataForm::showEvent(QShowEvent * event) |
849 { |
851 { |
850 if(!isVisible() ){ |
852 //if(!isVisible() ){ |
851 delayGestureInstaller.install(); |
853 // delayGestureInstaller.install(); |
852 } |
854 //} |
853 HbAbstractItemView::showEvent( event ); |
855 HbAbstractItemView::showEvent( event ); |
854 } |
856 } |
855 |
857 |
856 /*! |
858 /*! |
857 \reimp |
859 \reimp |
858 */ |
860 */ |
859 void HbDataForm::hideEvent ( QHideEvent * event ) |
861 void HbDataForm::hideEvent ( QHideEvent * event ) |
860 { |
862 { |
861 delayGestureInstaller.unInstall(); |
863 //delayGestureInstaller.unInstall(); |
862 HbAbstractItemView::hideEvent( event ); |
864 HbAbstractItemView::hideEvent( event ); |
863 |
865 |
864 } |
866 } |
865 |
867 |
866 |
868 |