From 4e9301e3d53febcf6b0dfe108c4189c2982952ff Mon Sep 17 00:00:00 2001 From: Gunnar Sletta Date: Tue, 22 Nov 2011 15:15:28 +0100 Subject: Increase the limit of the QDeclarativePixmapCache to something sensible MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- src/declarative/util/qdeclarativepixmapcache.cpp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'src/declarative/util') diff --git a/src/declarative/util/qdeclarativepixmapcache.cpp b/src/declarative/util/qdeclarativepixmapcache.cpp index 556524cc60..937dd4cda5 100644 --- a/src/declarative/util/qdeclarativepixmapcache.cpp +++ b/src/declarative/util/qdeclarativepixmapcache.cpp @@ -76,12 +76,7 @@ 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; -- cgit v1.2.3