diff options
author | Jani Hautakangas <jani.hautakangas@nokia.com> | 2011-04-21 14:11:01 +0300 |
---|---|---|
committer | Jani Hautakangas <jani.hautakangas@nokia.com> | 2011-04-26 10:14:04 +0300 |
commit | 4226a34e4e2f8739b238b9f9b1769e2fd4fabd7e (patch) | |
tree | b4d6505d2ee9603659b5821e3568271cf5023131 | |
parent | 6567ba691332aa6f97ace22ca9a5e127a9881c60 (diff) |
Set QPixmapCache default limit to 10MB on Symbian.
Cache limit can be changed to 10MB since QPixmaps
on Symbian are not consuming process heap anymore.
QPixmaps are reserved from FBServ heap.
Task-number: QTBUG-18568
Reviewed-by: Laszlo Agocs
-rw-r--r-- | src/declarative/util/qdeclarativepixmapcache.cpp | 4 | ||||
-rw-r--r-- | src/gui/image/qpixmapcache.cpp | 4 |
2 files changed, 2 insertions, 6 deletions
diff --git a/src/declarative/util/qdeclarativepixmapcache.cpp b/src/declarative/util/qdeclarativepixmapcache.cpp index 5190eab8fe..099eae93d3 100644 --- a/src/declarative/util/qdeclarativepixmapcache.cpp +++ b/src/declarative/util/qdeclarativepixmapcache.cpp @@ -72,9 +72,7 @@ QT_BEGIN_NAMESPACE // The cache limit describes the maximum "junk" in the cache. // These are the same defaults as QPixmapCache -#if defined(Q_OS_SYMBIAN) -static int cache_limit = 1024 * 1024; // 1048 KB cache limit for symbian -#elif defined(Q_WS_QWS) || defined(Q_WS_WINCE) +#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 = 10240 * 1024; // 10 MB cache limit for desktop diff --git a/src/gui/image/qpixmapcache.cpp b/src/gui/image/qpixmapcache.cpp index 41fc6e94b4..ae772d8bc3 100644 --- a/src/gui/image/qpixmapcache.cpp +++ b/src/gui/image/qpixmapcache.cpp @@ -91,9 +91,7 @@ QT_BEGIN_NAMESPACE \sa QCache, QPixmap */ -#if defined(Q_OS_SYMBIAN) -static int cache_limit = 1024; // 1048 KB cache limit for symbian -#elif defined(Q_WS_QWS) || defined(Q_WS_WINCE) +#if defined(Q_WS_QWS) || defined(Q_WS_WINCE) static int cache_limit = 2048; // 2048 KB cache limit for embedded #else static int cache_limit = 10240; // 10 MB cache limit for desktop |