equal
deleted
inserted
replaced
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; |