equal
deleted
inserted
replaced
26 HOMESCREEN_TEST_CLASS(TestShortcutWidget) |
26 HOMESCREEN_TEST_CLASS(TestShortcutWidget) |
27 |
27 |
28 class HbFrameItem; |
28 class HbFrameItem; |
29 class HbIconItem; |
29 class HbIconItem; |
30 class HbTextItem; |
30 class HbTextItem; |
31 class HbTouchArea; |
31 class QGestureEvent; |
32 class CaEntry; |
32 class CaEntry; |
33 |
33 |
34 class HsShortcutWidget : public HbWidget |
34 class HsShortcutWidget : public HbWidget |
35 { |
35 { |
36 Q_OBJECT |
36 Q_OBJECT |
49 QString uid() const; |
49 QString uid() const; |
50 |
50 |
51 QString text() const; |
51 QString text() const; |
52 void setText(const QString& textItem); |
52 void setText(const QString& textItem); |
53 |
53 |
54 bool eventFilter(QObject *watched, QEvent *event); |
|
55 |
|
56 signals: |
54 signals: |
57 void finished(); |
55 void finished(); |
58 void setPreferences(const QStringList &names); |
56 void setPreferences(const QStringList &names); |
59 |
57 |
60 public slots: |
58 public slots: |
61 void onInitialize(); |
59 void onInitialize(); |
62 void onShow(); |
60 void onShow(); |
63 void onHide(); |
61 void onHide(); |
64 |
62 |
|
63 protected: |
|
64 void gestureEvent(QGestureEvent *event); |
|
65 |
65 private: |
66 private: |
66 Q_DISABLE_COPY(HsShortcutWidget) |
67 Q_DISABLE_COPY(HsShortcutWidget) |
67 |
68 |
68 void handleMousePressEvent(QGraphicsSceneMouseEvent *event); |
69 void launch(); |
69 void handleMouseMoveEvent(QGraphicsSceneMouseEvent *event); |
|
70 void handleMouseReleaseEvent(QGraphicsSceneMouseEvent *event); |
|
71 |
70 |
72 void createPrimitives(); |
71 void createPrimitives(); |
73 void updateContent(const CaEntry &caEntry); |
72 void updateContent(const CaEntry &caEntry); |
74 void updateVisibility(); |
73 void updateVisibility(); |
75 |
74 |
83 |
82 |
84 private: |
83 private: |
85 HbFrameItem *mBackground; |
84 HbFrameItem *mBackground; |
86 HbIconItem *mIcon; |
85 HbIconItem *mIcon; |
87 HbTextItem *mText; |
86 HbTextItem *mText; |
88 HbTouchArea *mTouchArea; |
87 |
89 |
|
90 int mCaEntryId; |
88 int mCaEntryId; |
91 QString mUid; |
89 QString mUid; |
92 EntryRole mCaEntryRole; |
90 EntryRole mCaEntryRole; |
93 EntryFlags mCaEntryFlags; |
91 EntryFlags mCaEntryFlags; |
94 QString mCaEntryTypeName; |
92 QString mCaEntryTypeName; |