equal
deleted
inserted
replaced
31 #include <hbgroupbox.h> |
31 #include <hbgroupbox.h> |
32 #include "hbgroupbox_p.h" |
32 #include "hbgroupbox_p.h" |
33 |
33 |
34 class HbGestureSceneFilter; |
34 class HbGestureSceneFilter; |
35 class HbGesture; |
35 class HbGesture; |
|
36 class QGestureEvent; |
36 |
37 |
37 class HB_AUTOTEST_EXPORT HbGroupBoxContentWidget : public HbWidget |
38 class HB_AUTOTEST_EXPORT HbGroupBoxContentWidget : public HbWidget |
38 { |
39 { |
39 Q_OBJECT |
40 Q_OBJECT |
40 |
41 |
54 enum { Type = HbPrivate::ItemType_GroupBoxContentWidget }; |
55 enum { Type = HbPrivate::ItemType_GroupBoxContentWidget }; |
55 int type() const { return Type; } |
56 int type() const { return Type; } |
56 |
57 |
57 signals: |
58 signals: |
58 void clicked(); |
59 void clicked(); |
|
60 void longPress(QPointF point); |
59 |
61 |
60 protected: |
62 protected: |
61 void initStyleOption( HbStyleOption *option ) const; |
63 void initStyleOption( HbStyleOption *option ) const; |
62 QVariant itemChange( GraphicsItemChange change, const QVariant &value ); |
64 QVariant itemChange( GraphicsItemChange change, const QVariant &value ); |
63 void mousePressEvent( QGraphicsSceneMouseEvent *event ); |
65 void mousePressEvent( QGraphicsSceneMouseEvent *event ); |
64 void mouseReleaseEvent( QGraphicsSceneMouseEvent *event ); |
66 void mouseReleaseEvent( QGraphicsSceneMouseEvent *event ); |
65 void polish( HbStyleParameters& params ); |
67 void polish( HbStyleParameters& params ); |
|
68 #ifdef HB_GESTURE_FW |
|
69 void gestureEvent(QGestureEvent *event); |
|
70 #endif |
66 |
71 |
67 public: |
72 public: |
68 HbWidget *mContent; |
73 HbWidget *mContent; |
69 QGraphicsItem *mBackgroundItem; |
74 QGraphicsItem *mBackgroundItem; |
70 |
75 |
71 GroupBoxType groupBoxType; |
76 GroupBoxType groupBoxType; |
72 bool contentPressed; |
77 bool contentPressed; |
73 HbGestureSceneFilter *gestureFilter; |
|
74 HbGesture *gestureLongpressed; |
|
75 HbGroupBox *groupBox; |
78 HbGroupBox *groupBox; |
76 }; |
79 }; |
77 |
80 |
78 #endif // HBGROUPBOXCONTENTWIDGET_H |
81 #endif // HBGROUPBOXCONTENTWIDGET_H |