summaryrefslogtreecommitdiffstats
path: root/src/gui/painting/qdrawutil.cpp
diff options
context:
space:
mode:
authorJens Bache-Wiig <jbache@trolltech.com>2010-06-02 10:58:17 (GMT)
committerJens Bache-Wiig <jbache@trolltech.com>2010-06-02 11:19:30 (GMT)
commit7644a925dab5400280228cd2f7381030368c6913 (patch)
tree8a75c4740c62a507de70a363cb6b0919601a926e /src/gui/painting/qdrawutil.cpp
parent417f3a4ece9403d1eb37ce0ecdf74cf670bdd0ff (diff)
downloadQt-7644a925dab5400280228cd2f7381030368c6913.zip
Qt-7644a925dab5400280228cd2f7381030368c6913.tar.gz
Qt-7644a925dab5400280228cd2f7381030368c6913.tar.bz2
More Pixmap cache key optimizations
Reviewed-by: ogoffart
Diffstat (limited to 'src/gui/painting/qdrawutil.cpp')
-rw-r--r--src/gui/painting/qdrawutil.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/gui/painting/qdrawutil.cpp b/src/gui/painting/qdrawutil.cpp
index 3ce95ef..11ea6d5 100644
--- a/src/gui/painting/qdrawutil.cpp
+++ b/src/gui/painting/qdrawutil.cpp
@@ -48,6 +48,7 @@
#include <private/qpaintengineex_p.h>
#include <qvarlengtharray.h>
#include <qmath.h>
+#include <private/qstylehelper_p.h>
QT_BEGIN_NAMESPACE
@@ -1018,7 +1019,9 @@ void qDrawItem(QPainter *p, Qt::GUIStyle gs,
;
#ifndef QT_NO_IMAGE_HEURISTIC_MASK
} else { // color pixmap, no mask
- QString k = QString::fromLatin1("$qt-drawitem-%1").arg(pm.cacheKey());
+ QString k = QLatin1Literal("$qt-drawitem")
+ % HexString<qint64>(pm.cacheKey());
+
if (!QPixmapCache::find(k, pm)) {
pm = pm.createHeuristicMask();
pm.setMask((QBitmap&)pm);