[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    KDE/kdegames/kpat/libkcardgame
From:       Parker Coates <parker.coates () kdemail ! net>
Date:       2010-09-03 21:39:13
Message-ID: 20100903213913.97A08AC894 () svn ! kde ! org
[Download RAW message or body]

SVN commit 1171456 by coates:

Set cache eviction policy to EvictLeastRecentlyUsed.

 M  +1 -0      kabstractcarddeck.cpp  


--- trunk/KDE/kdegames/kpat/libkcardgame/kabstractcarddeck.cpp #1171455:1171456
@@ -472,6 +472,7 @@
         QString cacheName = QString( cacheNameTemplate ).arg( theme.dirName() );
         d->cache = new KImageCache( cacheName, 3 * 1024 * 1024 );
         d->cache->setPixmapCaching( true );
+        d->cache->setEvictionPolicy( KSharedDataCache::EvictLeastRecentlyUsed );
 
         bool keepCache = false;
         QByteArray buffer;
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic