summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlessandro Portale <aportale@trolltech.com>2009-06-02 11:28:51 (GMT)
committerAlessandro Portale <aportale@trolltech.com>2009-06-02 11:28:51 (GMT)
commitaddc4d77f781f05a203638a26035afb1076c6d64 (patch)
treeea85819f804c74dac915714d169f5a4718d980fd
parent17a4589e4d8e5dede5dc786a284115cb822872e0 (diff)
downloadQt-addc4d77f781f05a203638a26035afb1076c6d64.zip
Qt-addc4d77f781f05a203638a26035afb1076c6d64.tar.gz
Qt-addc4d77f781f05a203638a26035afb1076c6d64.tar.bz2
Initialize the QImage
-rw-r--r--src/gui/styles/qs60style_simulated.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gui/styles/qs60style_simulated.cpp b/src/gui/styles/qs60style_simulated.cpp
index 929f987..0e00463 100644
--- a/src/gui/styles/qs60style_simulated.cpp
+++ b/src/gui/styles/qs60style_simulated.cpp
@@ -139,6 +139,7 @@ QPixmap QS60StylePrivate::frame(SkinFrameElements frame, const QSize &size,
const QRect centerRect = drawOnlyCenter ? rect : rect.adjusted(cornerWidth, cornerWidth, -cornerWidth, -cornerWidth);
QImage result(size, QImage::Format_ARGB32);
+ result.fill(Qt::transparent);
QPainter painter(&result);
#if 0