Skip to content

Commit 7a73de7

Browse files
author
Qt Continuous Integration System
committed
Merge branch 'qt-4.8-from-4.7' of scm.dev.nokia.troll.no:qt/qt-integration into master-integration
* 'qt-4.8-from-4.7' of scm.dev.nokia.troll.no:qt/qt-integration: Set QPixmapCache default limit to 10MB on Symbian.
2 parents 399782c + 936e747 commit 7a73de7

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

src/declarative/util/qdeclarativepixmapcache.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,9 +72,7 @@ QT_BEGIN_NAMESPACE
7272

7373
// The cache limit describes the maximum "junk" in the cache.
7474
// These are the same defaults as QPixmapCache
75-
#if defined(Q_OS_SYMBIAN)
76-
static int cache_limit = 1024 * 1024; // 1048 KB cache limit for symbian
77-
#elif defined(Q_WS_QWS) || defined(Q_WS_WINCE)
75+
#if defined(Q_WS_QWS) || defined(Q_WS_WINCE)
7876
static int cache_limit = 2048 * 1024; // 2048 KB cache limit for embedded
7977
#else
8078
static int cache_limit = 10240 * 1024; // 10 MB cache limit for desktop

src/gui/image/qpixmapcache.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -91,9 +91,7 @@ QT_BEGIN_NAMESPACE
9191
\sa QCache, QPixmap
9292
*/
9393

94-
#if defined(Q_OS_SYMBIAN)
95-
static int cache_limit = 1024; // 1048 KB cache limit for symbian
96-
#elif defined(Q_WS_QWS) || defined(Q_WS_WINCE)
94+
#if defined(Q_WS_QWS) || defined(Q_WS_WINCE)
9795
static int cache_limit = 2048; // 2048 KB cache limit for embedded
9896
#else
9997
static int cache_limit = 10240; // 10 MB cache limit for desktop

0 commit comments

Comments
 (0)