contentstorage/caclient/src/caentry.cpp
changeset 107 b34d53f6acdf
parent 98 d2f833ab7940
child 112 dbfb5e38438b
equal deleted inserted replaced
106:e78d6e055a5b 107:b34d53f6acdf
   419  \endcode
   419  \endcode
   420  */
   420  */
   421 HbIcon CaEntry::makeIcon(const QSize &size) const
   421 HbIcon CaEntry::makeIcon(const QSize &size) const
   422 {
   422 {
   423     CACLIENTTEST_FUNC_ENTRY("CaEntry::makeIcon");
   423     CACLIENTTEST_FUNC_ENTRY("CaEntry::makeIcon");
   424     HbIcon icon;
   424     HbIcon icon = CaIconCache::cache()->icon(*this,size);
   425     if (CaIconCache::cache()->exist(*this,size)) {
   425     if (icon.isNull()) {
   426         icon = CaIconCache::cache()->icon(*this,size);
       
   427     } else {
       
   428         icon = m_d->makeIcon(size);
   426         icon = m_d->makeIcon(size);
   429         CaIconCache::cache()->insert(*this, size, icon);
   427         CaIconCache::cache()->insert(*this, size, icon);
   430     }
   428     }
   431     CACLIENTTEST_FUNC_EXIT("CaEntry::makeIcon");
   429     CACLIENTTEST_FUNC_EXIT("CaEntry::makeIcon");
   432     return icon;
   430     return icon;