aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGunnar Sletta <gunnar.sletta@nokia.com>2011-11-22 15:15:28 +0100
committerQt by Nokia <qt-info@nokia.com>2011-11-23 10:11:52 +0100
commit4e9301e3d53febcf6b0dfe108c4189c2982952ff (patch)
tree6c4e392e5dab2879178636014feeb2016a1a1581 /src
parent2b99f2a4da87aadaeaba30e14cf2062a6a028b36 (diff)
Increase the limit of the QDeclarativePixmapCache to something sensible
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>
Diffstat (limited to 'src')
-rw-r--r--src/declarative/util/qdeclarativepixmapcache.cpp7
1 files changed, 1 insertions, 6 deletions
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;