diff options
author | Donald Carr <donald.carr@nokia.com> | 2009-12-08 16:28:43 (GMT) |
---|---|---|
committer | Donald Carr <donald.carr@nokia.com> | 2009-12-08 16:28:43 (GMT) |
commit | 0b78ccc201f58b53c90e6327b051bfdb8c08ee14 (patch) | |
tree | 241fdc65d49554e74ec3bc6503b94cc65259f868 /src/gui/kernel | |
parent | 76f82b74780cb252782c31e6e690f8529b43b38f (diff) | |
download | Qt-0b78ccc201f58b53c90e6327b051bfdb8c08ee14.zip Qt-0b78ccc201f58b53c90e6327b051bfdb8c08ee14.tar.gz Qt-0b78ccc201f58b53c90e6327b051bfdb8c08ee14.tar.bz2 |
Fixed uninitialized background artifacts in QWidget::render.
backport of 64d38ba23b4acc46fdb9145f1953315573e3f8dc
Reviewed-by: Anders Bakken<anders.bakken@nokia.com>
Diffstat (limited to 'src/gui/kernel')
-rw-r--r-- | src/gui/kernel/qwidget.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/kernel/qwidget.cpp b/src/gui/kernel/qwidget.cpp index 85c1955..91e43ce 100644 --- a/src/gui/kernel/qwidget.cpp +++ b/src/gui/kernel/qwidget.cpp @@ -4955,7 +4955,7 @@ void QWidgetPrivate::render_helper(QPainter *painter, const QPoint &targetOffset return; QPixmap pixmap(size); - if (!(renderFlags & QWidget::DrawWindowBackground)) + if (!(renderFlags & QWidget::DrawWindowBackground) || !isOpaque) pixmap.fill(Qt::transparent); q->render(&pixmap, QPoint(), toBePainted, renderFlags); |