contentstorage/caclient/src/caentry.cpp
changeset 109 e0aa398e6810
parent 103 b99b84bcd2d1
child 115 3ab5c078b490
equal deleted inserted replaced
104:9b022b1f357c 109:e0aa398e6810
   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;