equal
deleted
inserted
replaced
353 } |
353 } |
354 break; |
354 break; |
355 } |
355 } |
356 return ret; |
356 return ret; |
357 } |
357 } |
|
358 |
|
359 /*! |
|
360 Handle font color changes in the case of theme change |
|
361 */ |
|
362 bool NmMessageListViewItem::event(QEvent *event) |
|
363 { |
|
364 bool ret = HbTreeViewItem::event(event); |
|
365 if (event && event->type() == HbEvent::ThemeChanged) { |
|
366 NmMessageListModelItem *msgModelItem(NULL); |
|
367 msgModelItem = modelIndex().data( |
|
368 Qt::DisplayRole).value<NmMessageListModelItem*>(); |
|
369 if (msgModelItem && !msgModelItem->envelope().isRead()) { |
|
370 setFontsUnread(); |
|
371 } |
|
372 else if (msgModelItem) { |
|
373 setFontsRead(); |
|
374 } |
|
375 } |
|
376 return ret; |
|
377 } |
|
378 |