emailuis/nmailui/src/nmmessagelistviewitem.cpp
changeset 66 084b5b1f02a7
parent 62 a8c646b56683
child 68 83cc6bae1de8
equal deleted inserted replaced
62:a8c646b56683 66:084b5b1f02a7
   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