summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorJan-Arve Sæther <jan-arve.saether@nokia.com>2009-11-06 11:11:24 +0100
committerJan-Arve Sæther <jan-arve.saether@nokia.com>2009-11-06 11:11:24 +0100
commitcc98c1d3c6fb39bad2ff7f6ebff881a697565305 (patch)
tree13e9faa2ebb89dc74fcae670bed672d2b6c2947f /examples
parenta708f07b593359b6bf5732ec444336956e194cda (diff)
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 fd5d9c6fab..900282829a 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