Increase the limit of the QDeclarativePixmapCache to something sensible
authorGunnar Sletta <gunnar.sletta@nokia.com>
Tue, 22 Nov 2011 14:15:28 +0000 (15:15 +0100)
committerQt by Nokia <qt-info@nokia.com>
Wed, 23 Nov 2011 09:11:52 +0000 (10:11 +0100)
The limit used to be much higher, but was changed due to an accidental
tag-along in a commit in April.

Change-Id: Ie9f868b3059758aef87c2e1979ef22d840631930
Reviewed-by: Bjørn Erik Nilsen <bjorn.nilsen@nokia.com>
src/declarative/util/qdeclarativepixmapcache.cpp

index 556524c..937dd4c 100644 (file)
 QT_BEGIN_NAMESPACE
 
 // The cache limit describes the maximum "junk" in the cache.
-// These are the same defaults as QPixmapCache
-#if defined(Q_WS_QWS) || defined(Q_WS_WINCE)
-static int cache_limit = 2048 * 1024; // 2048 KB cache limit for embedded
-#else
-static int cache_limit = 128 * 1024; // 10 MB cache limit for desktop
-#endif
+static int cache_limit = 2048 * 1024; // 2048 KB cache limit for embedded in qpixmapcache.cpp
 
 class QDeclarativePixmapReader;
 class QDeclarativePixmapData;