Changeset View
Changeset View
Standalone View
Standalone View
krusader/Panel/PanelView/krview.cpp
Show First 20 Lines • Show All 338 Lines • ▼ Show 20 Line(s) | 338 | if(fileitem->isSymLink()) | |||
---|---|---|---|---|---|
339 | cacheName.append("LINK_"); | 339 | cacheName.append("LINK_"); | ||
340 | if(dim) | 340 | if(dim) | ||
341 | cacheName.append("DIM_"); | 341 | cacheName.append("DIM_"); | ||
342 | cacheName.append(iconName); | 342 | cacheName.append(iconName); | ||
343 | 343 | | |||
344 | //QPixmapCache::setCacheLimit( ag.readEntry("Icon Cache Size",_IconCacheSize) ); | 344 | //QPixmapCache::setCacheLimit( ag.readEntry("Icon Cache Size",_IconCacheSize) ); | ||
345 | 345 | | |||
346 | // first try the cache | 346 | // first try the cache | ||
347 | if (!QPixmapCache::find(cacheName, icon)) { | 347 | if (!QPixmapCache::find(cacheName, &icon)) { | ||
348 | icon = processIcon(Icon(iconName, Icon("unknown")).pixmap(size), | 348 | icon = processIcon(Icon(iconName, Icon("unknown")).pixmap(size), | ||
349 | dim, dimColor, dimFactor, fileitem->isSymLink()); | 349 | dim, dimColor, dimFactor, fileitem->isSymLink()); | ||
350 | // insert it into the cache | 350 | // insert it into the cache | ||
351 | QPixmapCache::insert(cacheName, icon); | 351 | QPixmapCache::insert(cacheName, icon); | ||
352 | } | 352 | } | ||
353 | 353 | | |||
354 | return icon; | 354 | return icon; | ||
355 | } | 355 | } | ||
▲ Show 20 Lines • Show All 871 Lines • Show Last 20 Lines |