emailuis/nmailuiwidgets/src/nmrecipientlineedit.cpp
changeset 75 47d84de1c893
parent 54 997a02608b3a
equal deleted inserted replaced
72:64e38f08e49c 75:47d84de1c893
   317     NM_FUNCTION;
   317     NM_FUNCTION;
   318     
   318     
   319     Q_UNUSED(text);
   319     Q_UNUSED(text);
   320     mNeedToGenerateEmailAddressList = true;
   320     mNeedToGenerateEmailAddressList = true;
   321 }
   321 }
       
   322 
       
   323 /*
       
   324  * If recipient is added from Contacts by Contacts, we need to add it to the list.
       
   325  */
       
   326 void NmRecipientLineEdit::addContacts(QList<NmAddress *> contacts)
       
   327 {
       
   328     foreach (NmAddress *nmContact,contacts) {
       
   329         if (nmContact && nmContact->displayName().length() > 0) {
       
   330             mRecipientsAddedFromContacts.append(*nmContact);
       
   331             mNeedToGenerateEmailAddressList = true;
       
   332         }
       
   333     }
       
   334 }