diff options
author | Jan-Arve Sæther <jan-arve.saether@nokia.com> | 2009-11-06 11:11:24 +0100 |
---|---|---|
committer | Jan-Arve Sæther <jan-arve.saether@nokia.com> | 2009-11-06 11:11:24 +0100 |
commit | cc98c1d3c6fb39bad2ff7f6ebff881a697565305 (patch) | |
tree | 13e9faa2ebb89dc74fcae670bed672d2b6c2947f /examples/graphicsview | |
parent | a708f07b593359b6bf5732ec444336956e194cda (diff) | |
download | qt4-tools-cc98c1d3c6fb39bad2ff7f6ebff881a697565305.tar.gz |
Make sure the pixmap is properly initialized.
Reviewed-by: sroedal
Diffstat (limited to 'examples/graphicsview')
-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 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 |