equal
deleted
inserted
replaced
24 #ifdef OST_TRACE_COMPILER_IN_USE |
24 #ifdef OST_TRACE_COMPILER_IN_USE |
25 #include "caleneventlistviewitemTraces.h" |
25 #include "caleneventlistviewitemTraces.h" |
26 #endif |
26 #endif |
27 |
27 |
28 |
28 |
29 CalenEventListViewItem::CalenEventListViewItem(QGraphicsItem *parent) : |
29 CalenEventListViewItem::CalenEventListViewItem(CalenAgendaViewWidget *parent) : |
30 HbListViewItem(parent) |
30 HbListViewItem(parent),mAllDayIcon(false),mParent(parent) |
31 { |
31 { |
32 OstTraceFunctionEntry0( CALENEVENTLISTVIEWITEM_CALENEVENTLISTVIEWITEM_ENTRY ); |
32 OstTraceFunctionEntry0( CALENEVENTLISTVIEWITEM_CALENEVENTLISTVIEWITEM_ENTRY ); |
33 |
33 |
34 OstTraceFunctionExit0( CALENEVENTLISTVIEWITEM_CALENEVENTLISTVIEWITEM_EXIT ); |
34 OstTraceFunctionExit0( CALENEVENTLISTVIEWITEM_CALENEVENTLISTVIEWITEM_EXIT ); |
35 } |
35 } |
51 } |
51 } |
52 |
52 |
53 void CalenEventListViewItem::updateChildItems() |
53 void CalenEventListViewItem::updateChildItems() |
54 { |
54 { |
55 OstTraceFunctionEntry0( CALENEVENTLISTVIEWITEM_UPDATECHILDITEMS_ENTRY ); |
55 OstTraceFunctionEntry0( CALENEVENTLISTVIEWITEM_UPDATECHILDITEMS_ENTRY ); |
|
56 if(mParent->hasAllDayIcon()) |
|
57 { |
|
58 mParent->checkEntryIcons(); |
|
59 mAllDayIcon = mParent->isAllDayIcon(); |
|
60 mExceptionIcon = mParent->isExceptionIcon(); |
|
61 mAlarmIcon = mParent->isAlarmIcon(); |
|
62 mRepeatingIcon = mParent->isRepeatingIcon(); |
|
63 } |
56 |
64 |
57 HbListViewItem::updateChildItems(); |
65 HbListViewItem::updateChildItems(); |
58 |
66 |
59 OstTraceFunctionExit0( CALENEVENTLISTVIEWITEM_UPDATECHILDITEMS_EXIT ); |
67 OstTraceFunctionExit0( CALENEVENTLISTVIEWITEM_UPDATECHILDITEMS_EXIT ); |
60 } |
68 } |
61 |
69 |
|
70 bool CalenEventListViewItem::hasAllDayIcon() |
|
71 { |
|
72 return mAllDayIcon ; |
|
73 } |
|
74 |
|
75 void CalenEventListViewItem::setAllDayLeftIcon(bool icon) |
|
76 { |
|
77 mAllDayIcon = icon; |
|
78 } |
|
79 bool CalenEventListViewItem::hasRepeatingIcon() |
|
80 { |
|
81 return mRepeatingIcon; |
|
82 } |
|
83 |
|
84 void CalenEventListViewItem::setRepeatingIcon(bool icon) |
|
85 { |
|
86 mRepeatingIcon = icon; |
|
87 } |
|
88 bool CalenEventListViewItem::hasAlarmIcon() |
|
89 { |
|
90 return mAlarmIcon; |
|
91 } |
|
92 void CalenEventListViewItem::setAlarmIcon(bool icon ) |
|
93 { |
|
94 mAlarmIcon = icon ; |
|
95 } |
|
96 bool CalenEventListViewItem::hasExceptionIcon() |
|
97 { |
|
98 return mExceptionIcon; |
|
99 } |
|
100 void CalenEventListViewItem::setExceptionIcon(bool icon ) |
|
101 { |
|
102 mExceptionIcon = icon ; |
|
103 } |
62 // End of file |
104 // End of file |