summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorJan-Arve Sæther <jan-arve.saether@nokia.com>2009-11-06 10:11:24 (GMT)
committerJan-Arve Sæther <jan-arve.saether@nokia.com>2009-11-06 10:11:24 (GMT)
commitcc98c1d3c6fb39bad2ff7f6ebff881a697565305 (patch)
tree13e9faa2ebb89dc74fcae670bed672d2b6c2947f /examples
parenta708f07b593359b6bf5732ec444336956e194cda (diff)
downloadQt-cc98c1d3c6fb39bad2ff7f6ebff881a697565305.zip
Qt-cc98c1d3c6fb39bad2ff7f6ebff881a697565305.tar.gz
Qt-cc98c1d3c6fb39bad2ff7f6ebff881a697565305.tar.bz2
Make sure the pixmap is properly initialized.
Reviewed-by: sroedal
Diffstat (limited to 'examples')
-rw-r--r--examples/graphicsview/weatheranchorlayout/main.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/examples/graphicsview/weatheranchorlayout/main.cpp b/examples/graphicsview/weatheranchorlayout/main.cpp
index fd5d9c6..9002828 100644
--- a/examples/graphicsview/weatheranchorlayout/main.cpp
+++ b/examples/graphicsview/weatheranchorlayout/main.cpp
@@ -124,6 +124,7 @@ public:
painter->drawPixmap(QPointF(), scaled);
QPixmap tmp(scaled.size());
+ tmp.fill(Qt::transparent);
QPainter p(&tmp);
// create gradient