emailuis/nmailui/src/nmviewerheader.cpp
changeset 72 64e38f08e49c
parent 59 16ed8d08d0b1
child 68 83cc6bae1de8
equal deleted inserted replaced
65:478bc57ad291 72:64e38f08e49c
   254 void NmViewerHeader::createExpandableHeader()
   254 void NmViewerHeader::createExpandableHeader()
   255 {
   255 {
   256     NM_FUNCTION;
   256     NM_FUNCTION;
   257     
   257     
   258     if (mHeaderBox) {        // Initialize recipient box
   258     if (mHeaderBox) {        // Initialize recipient box
   259         if (!mRecipientsBox){
   259         if (!mRecipientsBox) {
   260             mRecipientsBox = new HbLabel();
   260             mRecipientsBox = new HbLabel();
   261             HbStyle::setItemName(mRecipientsBox, "recipients");
   261             HbStyle::setItemName(mRecipientsBox, "recipients");
   262             mRecipientsBox->setFontSpec(HbFontSpec(HbFontSpec::Secondary)); 
   262             mRecipientsBox->setFontSpec(HbFontSpec(HbFontSpec::Secondary)); 
   263             mRecipientsBox->setTextWrapping((Hb::TextWrapping)NmTextWrapWordOrAnywhere);
   263             mRecipientsBox->setTextWrapping((Hb::TextWrapping)NmTextWrapWordOrAnywhere);
   264         }
   264         }              
   265                
       
   266         // Set recipients to text edit field as html 
       
   267         NmAddress sender = mMessage->envelope().sender();               
       
   268         if (mMessage) {
   265         if (mMessage) {
       
   266             // Set recipients to text edit field as html 
       
   267             NmAddress sender = mMessage->envelope().sender(); 
   269             mRecipientsBox->setHtml(formatRecipientList(addressToDisplay(sender),
   268             mRecipientsBox->setHtml(formatRecipientList(addressToDisplay(sender),
   270                                     mMessage->envelope().toRecipients(), 
   269                                     mMessage->envelope().toRecipients(), 
   271                                     mMessage->envelope().ccRecipients()));
   270                                     mMessage->envelope().ccRecipients()));
   272         }
   271         }
   273         mHeaderBox->setContentWidget(mRecipientsBox);
   272         mHeaderBox->setContentWidget(mRecipientsBox);