equal
deleted
inserted
replaced
33 |
33 |
34 QTM_USE_NAMESPACE |
34 QTM_USE_NAMESPACE |
35 |
35 |
36 class CntEditViewHeadingItem : public HbWidget |
36 class CntEditViewHeadingItem : public HbWidget |
37 { |
37 { |
|
38 friend class TestCntEditViewHeadingItem; |
|
39 |
38 Q_OBJECT |
40 Q_OBJECT |
39 Q_PROPERTY( QString text READ getText ) |
41 Q_PROPERTY( QString text READ getText ) |
40 Q_PROPERTY( QString second_text READ getSecond_text ) |
42 Q_PROPERTY( QString second_text READ getSecond_text ) |
41 Q_PROPERTY( HbIcon icon READ getIcon WRITE setIcon ) |
43 Q_PROPERTY( HbIcon icon READ getIcon WRITE setIcon ) |
42 |
44 |
56 |
58 |
57 public: |
59 public: |
58 void createPrimitives(); |
60 void createPrimitives(); |
59 void recreatePrimitives(); |
61 void recreatePrimitives(); |
60 void updatePrimitives(); |
62 void updatePrimitives(); |
61 void setDetails(const QContact* contact); |
63 void setDetails(const QContact* contact, bool myCard); |
62 |
64 |
63 QString getText() const { return text; } |
65 QString getText() const { return text; } |
64 QString getSecond_text() const { return second_text; } |
66 QString getSecond_text() const { return second_text; } |
65 HbIcon getIcon() const { return icon; } |
67 HbIcon getIcon() const { return icon; } |
66 |
68 |
67 void setIcon(const HbIcon newIcon); |
69 void setIcon(const HbIcon newIcon); |
68 |
70 |
69 private slots: |
71 private slots: |
70 void orientationChanged(Qt::Orientation); |
72 void orientationChanged(Qt::Orientation); |
71 |
73 |
72 #ifdef PBK_UNIT_TEST |
|
73 public: |
|
74 #else |
|
75 private: |
74 private: |
76 #endif |
|
77 HbIconItem *mIcon; |
75 HbIconItem *mIcon; |
78 HbTextItem *mLabel; |
76 HbTextItem *mLabel; |
79 HbTextItem *mSecondLabel; |
77 HbTextItem *mSecondLabel; |
80 HbFrameItem *mFrameItem; |
78 HbFrameItem *mFrameItem; |
81 HbTouchArea *mIconTouchArea; |
79 HbTouchArea *mIconTouchArea; |