diff options
author | Jan-Arve Sæther <jan-arve.saether@nokia.com> | 2009-11-06 10:11:24 (GMT) |
---|---|---|
committer | Jan-Arve Sæther <jan-arve.saether@nokia.com> | 2009-11-06 10:11:24 (GMT) |
commit | cc98c1d3c6fb39bad2ff7f6ebff881a697565305 (patch) | |
tree | 13e9faa2ebb89dc74fcae670bed672d2b6c2947f /examples | |
parent | a708f07b593359b6bf5732ec444336956e194cda (diff) | |
download | Qt-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.cpp | 1 |
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 |