equal
deleted
inserted
replaced
21 #include <HbWidget> |
21 #include <HbWidget> |
22 |
22 |
23 class HbFrameItem; |
23 class HbFrameItem; |
24 class HbIconItem; |
24 class HbIconItem; |
25 class HbTextItem; |
25 class HbTextItem; |
26 class HbTouchArea; |
26 class QGestureEvent; |
27 |
27 |
28 class HsBookmarkWidget : public HbWidget |
28 class HsBookmarkWidget : public HbWidget |
29 { |
29 { |
30 Q_OBJECT |
30 Q_OBJECT |
31 |
31 |
63 QString bookmarkUrl() const; |
63 QString bookmarkUrl() const; |
64 void setFaviconFileName(const QString &faviconFileName); |
64 void setFaviconFileName(const QString &faviconFileName); |
65 QString faviconFileName() const; |
65 QString faviconFileName() const; |
66 void setFaviconPath(const QString &faviconPath); |
66 void setFaviconPath(const QString &faviconPath); |
67 QString faviconPath() const; |
67 QString faviconPath() const; |
68 |
|
69 bool eventFilter(QObject *watched, QEvent *event); |
|
70 |
68 |
|
69 protected: |
|
70 void gestureEvent(QGestureEvent *event); |
|
71 |
71 public slots: |
72 public slots: |
72 |
73 |
73 void onInitialize(); |
74 void onInitialize(); |
74 void onShow(); |
75 void onShow(); |
75 void onHide(); |
76 void onHide(); |
76 |
77 |
77 private: |
78 private: |
78 |
79 |
79 void handleMousePressEvent(QGraphicsSceneMouseEvent *event); |
80 void launch(); |
80 void handleMouseMoveEvent(QGraphicsSceneMouseEvent *event); |
81 |
81 void handleMouseReleaseEvent(QGraphicsSceneMouseEvent *event); |
|
82 |
|
83 void createPrimitives(); |
82 void createPrimitives(); |
84 |
83 |
85 void setBackgroundToNormal(); |
84 void setBackgroundToNormal(); |
86 void setBackgroundToPressed(); |
85 void setBackgroundToPressed(); |
87 |
86 |
96 Q_DISABLE_COPY(HsBookmarkWidget) |
95 Q_DISABLE_COPY(HsBookmarkWidget) |
97 |
96 |
98 HbFrameItem *mBackground; |
97 HbFrameItem *mBackground; |
99 HbIconItem *mIcon; |
98 HbIconItem *mIcon; |
100 HbTextItem *mText; |
99 HbTextItem *mText; |
101 HbTouchArea *mTouchArea; |
|
102 |
100 |
103 QString mRootPath; |
101 QString mRootPath; |
104 QString mBookmarkTitle; |
102 QString mBookmarkTitle; |
105 QString mBookmarkUrl; |
103 QString mBookmarkUrl; |
106 QString mFaviconFileName; |
104 QString mFaviconFileName; |