equal
deleted
inserted
replaced
29 // CalenEventListViewItem::CalenEventListViewItem |
29 // CalenEventListViewItem::CalenEventListViewItem |
30 // constructor |
30 // constructor |
31 // ---------------------------------------------------------------------------- |
31 // ---------------------------------------------------------------------------- |
32 // |
32 // |
33 CalenEventListViewItem::CalenEventListViewItem(CalenAgendaViewWidget *parent) : |
33 CalenEventListViewItem::CalenEventListViewItem(CalenAgendaViewWidget *parent) : |
34 HbListViewItem(parent),mAllDayIcon(false),mLocationEntry(false),mParent(parent) |
34 HbListViewItem(parent),mParent(parent),mAllDayIcon(false) |
35 { |
35 { |
36 OstTraceFunctionEntry0( CALENEVENTLISTVIEWITEM_CALENEVENTLISTVIEWITEM_ENTRY ); |
36 OstTraceFunctionEntry0( CALENEVENTLISTVIEWITEM_CALENEVENTLISTVIEWITEM_ENTRY ); |
37 |
37 |
38 OstTraceFunctionExit0( CALENEVENTLISTVIEWITEM_CALENEVENTLISTVIEWITEM_EXIT ); |
38 OstTraceFunctionExit0( CALENEVENTLISTVIEWITEM_CALENEVENTLISTVIEWITEM_EXIT ); |
39 } |
39 } |
74 OstTraceFunctionEntry0( CALENEVENTLISTVIEWITEM_UPDATECHILDITEMS_ENTRY ); |
74 OstTraceFunctionEntry0( CALENEVENTLISTVIEWITEM_UPDATECHILDITEMS_ENTRY ); |
75 if(mParent->hasAllDayIcon()) |
75 if(mParent->hasAllDayIcon()) |
76 { |
76 { |
77 mParent->checkEntryIcons(); |
77 mParent->checkEntryIcons(); |
78 mAllDayIcon = mParent->isAllDayIcon(); |
78 mAllDayIcon = mParent->isAllDayIcon(); |
79 mLocationEntry = mParent->isLocationData(); |
|
80 } |
79 } |
81 |
80 |
82 HbListViewItem::updateChildItems(); |
81 HbListViewItem::updateChildItems(); |
83 |
82 |
84 OstTraceFunctionExit0( CALENEVENTLISTVIEWITEM_UPDATECHILDITEMS_EXIT ); |
83 OstTraceFunctionExit0( CALENEVENTLISTVIEWITEM_UPDATECHILDITEMS_EXIT ); |
102 void CalenEventListViewItem::setAllDayLeftIcon(bool icon) |
101 void CalenEventListViewItem::setAllDayLeftIcon(bool icon) |
103 { |
102 { |
104 mAllDayIcon = icon; |
103 mAllDayIcon = icon; |
105 } |
104 } |
106 |
105 |
107 // ---------------------------------------------------------------------------- |
|
108 // CalenEventListViewItem::hasAllDayIcon |
|
109 // check if location entry is there in item |
|
110 // ---------------------------------------------------------------------------- |
|
111 // |
|
112 bool CalenEventListViewItem::locationEntryLayout() |
|
113 { |
|
114 if(mAllDayIcon && !mLocationEntry) |
|
115 return true; |
|
116 else |
|
117 return false; |
|
118 } |
|
119 |
|
120 // ---------------------------------------------------------------------------- |
|
121 // CalenEventListViewItem::setAllDayLeftIcon |
|
122 // set the location entry status |
|
123 // ---------------------------------------------------------------------------- |
|
124 // |
|
125 void CalenEventListViewItem::setLocationEntry(bool icon) |
|
126 { |
|
127 mLocationEntry = icon; |
|
128 } |
|
129 |
|
130 // End of file |
106 // End of file |