summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorQt Continuous Integration System <qt-info@nokia.com>2010-10-31 16:06:00 (GMT)
committerQt Continuous Integration System <qt-info@nokia.com>2010-10-31 16:06:00 (GMT)
commitf93db15d46ddcb88189a5ba010b27aeac783ed24 (patch)
treeba52b6be0d1927ee694bb78daa13cdeb001c9927 /src
parent4a6386b0b75f97c6d53efbeb5cd51fb4247c4c11 (diff)
parent349b6c734aa7af85f3709312325c3b2e9abdad2b (diff)
downloadQt-f93db15d46ddcb88189a5ba010b27aeac783ed24.zip
Qt-f93db15d46ddcb88189a5ba010b27aeac783ed24.tar.gz
Qt-f93db15d46ddcb88189a5ba010b27aeac783ed24.tar.bz2
Merge branch 4.7 into qt-master-from-4.7
Diffstat (limited to 'src')
-rw-r--r--src/gui/painting/qpaintengine_raster.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gui/painting/qpaintengine_raster.cpp b/src/gui/painting/qpaintengine_raster.cpp
index 1690e67..4b3e14d 100644
--- a/src/gui/painting/qpaintengine_raster.cpp
+++ b/src/gui/painting/qpaintengine_raster.cpp
@@ -40,6 +40,7 @@
****************************************************************************/
#include <QtCore/qglobal.h>
+#include <QtCore/qmutex.h>
#define QT_FT_BEGIN_HEADER
#define QT_FT_END_HEADER
@@ -4963,6 +4964,7 @@ public:
for (int i = 0; i < stops.size() && i <= 2; i++)
hash_val += stops[i].second.rgba();
+ QMutexLocker lock(&mutex);
QGradientColorTableHash::const_iterator it = cache.constFind(hash_val);
if (it == cache.constEnd())
@@ -4996,6 +4998,7 @@ protected:
}
QGradientColorTableHash cache;
+ QMutex mutex;
};
void QGradientCache::generateGradientColorTable(const QGradient& gradient, uint *colorTable, int size, int opacity) const