phonebookui/pbkcommonui/src/cntcontactcardheadingitem.cpp
changeset 65 ae724a111993
parent 59 a642906a277a
child 66 554fe4dbbb59
equal deleted inserted replaced
59:a642906a277a 65:ae724a111993
   344     // company label
   344     // company label
   345     if (isCompanyName(contact))
   345     if (isCompanyName(contact))
   346     {
   346     {
   347         QContactOrganization org = contact->detail<QContactOrganization>();
   347         QContactOrganization org = contact->detail<QContactOrganization>();
   348         QStringList companyList;
   348         QStringList companyList;
   349         companyList << org.title() << org.name() << org.department();
   349         
   350         tinyMarqueeText = companyList.join(" ").trimmed();
   350         if (!org.title().isEmpty())
       
   351             companyList << org.title();
       
   352         if (!org.name().isEmpty())
       
   353             companyList << org.name();
       
   354         if (!org.department().isEmpty())
       
   355             companyList << org.department().join(", ").trimmed();
       
   356         tinyMarqueeText = companyList.join(", ").trimmed();
   351     }
   357     }
   352 
   358 
   353     recreatePrimitives();
   359     recreatePrimitives();
       
   360     repolish();
   354 }
   361 }
   355 
   362 
   356 QString CntContactCardHeadingItem::createNameText(const QContactName name)
   363 QString CntContactCardHeadingItem::createNameText(const QContactName name)
   357 {
   364 {
   358     XQSettingsManager settingsMng;
   365     XQSettingsManager settingsMng;