summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSamuel Rødal <sroedal@trolltech.com>2010-05-07 10:03:12 (GMT)
committerSamuel Rødal <sroedal@trolltech.com>2010-05-07 10:50:46 (GMT)
commit2f9f59d7a33a7cfa5fe2127d726706f10842ca53 (patch)
tree25807bd73b23e2cf564fefff1da6936c3c980658 /src
parent85ccffc829fd0d5a29e84f90bcab460770ea8601 (diff)
downloadQt-2f9f59d7a33a7cfa5fe2127d726706f10842ca53.zip
Qt-2f9f59d7a33a7cfa5fe2127d726706f10842ca53.tar.gz
Qt-2f9f59d7a33a7cfa5fe2127d726706f10842ca53.tar.bz2
Fixed source pixmap bug in widget graphics effect backend.
The source pixmap shouldn't include the window background, as the graphics effect might then overwrite other widgets. Reviewed-by: Jens Bache-Wiig
Diffstat (limited to 'src')
-rw-r--r--src/gui/kernel/qwidget.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/kernel/qwidget.cpp b/src/gui/kernel/qwidget.cpp
index be0a8a0..5d08d4b 100644
--- a/src/gui/kernel/qwidget.cpp
+++ b/src/gui/kernel/qwidget.cpp
@@ -5628,7 +5628,7 @@ QPixmap QWidgetEffectSourcePrivate::pixmap(Qt::CoordinateSystem system, QPoint *
QPixmap pixmap(effectRect.size());
pixmap.fill(Qt::transparent);
- m_widget->render(&pixmap, pixmapOffset);
+ m_widget->render(&pixmap, pixmapOffset, QRegion(), QWidget::DrawChildren);
return pixmap;
}
#endif //QT_NO_GRAPHICSEFFECT