equal
deleted
inserted
replaced
82 delete mIcon; |
82 delete mIcon; |
83 } |
83 } |
84 mIcon = 0; |
84 mIcon = 0; |
85 } |
85 } |
86 |
86 |
87 |
87 if (!secondaryIcon.isNull()) |
88 if (!mSecondaryIcon) |
88 { |
89 { |
89 if (!mSecondaryIcon) |
90 mSecondaryIcon = new HbIconItem(this); |
90 { |
91 mSecondaryIcon->setFlags(HbIcon::Colorized); |
91 mSecondaryIcon = new HbIconItem(this); |
92 style()->setItemName(mSecondaryIcon, "secondaryIcon"); |
92 mSecondaryIcon->setFlags(HbIcon::Colorized); |
93 } |
93 style()->setItemName(mSecondaryIcon, "secondaryIcon"); |
94 mSecondaryIcon->setIcon(secondaryIcon); |
94 } |
95 mSecondaryIcon->setColor(HbColorScheme::color("qtc_view_normal")); |
95 mSecondaryIcon->setIcon(secondaryIcon); |
96 |
96 mSecondaryIcon->setColor(HbColorScheme::color("qtc_view_normal")); |
|
97 } |
|
98 else |
|
99 { |
|
100 if (mSecondaryIcon) |
|
101 { |
|
102 delete mSecondaryIcon; |
|
103 } |
|
104 mSecondaryIcon = 0; |
|
105 } |
97 |
106 |
98 if (!mFirstLineText) |
107 if (!mFirstLineText) |
99 { |
108 { |
100 mFirstLineText = new HbTextItem(this); |
109 mFirstLineText = new HbTextItem(this); |
101 mFirstLineText->setTextWrapping(Hb::TextNoWrap); |
110 mFirstLineText->setTextWrapping(Hb::TextNoWrap); |
245 |
254 |
246 recreatePrimitives(); |
255 recreatePrimitives(); |
247 } |
256 } |
248 |
257 |
249 //To update the secondary icon item |
258 //To update the secondary icon item |
250 void CntContactCardDetailItem::setSecondaryIconItem( HbIcon aIcon ) |
259 void CntContactCardDetailItem::setSecondaryIconItem(HbIcon aIcon) |
251 { |
260 { |
252 secondaryIcon.clear(); |
261 secondaryIcon.clear(); |
253 secondaryIcon = aIcon; |
262 secondaryIcon = aIcon; |
254 if ( !mSecondaryIcon ) |
263 if (!mSecondaryIcon) |
255 { |
264 { |
256 mSecondaryIcon = new HbIconItem(this); |
265 mSecondaryIcon = new HbIconItem(this); |
257 mSecondaryIcon->setFlags(HbIcon::Colorized); |
266 mSecondaryIcon->setFlags(HbIcon::Colorized); |
258 style()->setItemName(mSecondaryIcon, "secondaryIcon"); |
267 style()->setItemName(mSecondaryIcon, "secondaryIcon"); |
259 } |
268 } |
260 mSecondaryIcon->setIcon(secondaryIcon); |
269 mSecondaryIcon->setIcon(secondaryIcon); |
261 mSecondaryIcon->setColor(HbColorScheme::color("foreground")); |
270 mSecondaryIcon->setColor(HbColorScheme::color("qtc_view_normal")); |
262 } |
271 } |
263 |
272 |
264 int CntContactCardDetailItem::index() |
273 int CntContactCardDetailItem::index() |
265 { |
274 { |
266 return mIndex; |
275 return mIndex; |