summaryrefslogtreecommitdiffstats
path: root/src/gui/image
diff options
context:
space:
mode:
authorGunnar Sletta <gunnar@trolltech.com>2009-11-13 10:59:01 (GMT)
committerGunnar Sletta <gunnar@trolltech.com>2009-11-13 10:59:01 (GMT)
commitf1aeeb025c5042f6684855006f963e2203d9c153 (patch)
tree430cbdfa0c42e23289f7cd4b5907656810dbe895 /src/gui/image
parent168524d4f642724fe9063500c0c39ab747f145b6 (diff)
parent88412920c58286d22aaa1e121b1030298adf86eb (diff)
downloadQt-f1aeeb025c5042f6684855006f963e2203d9c153.zip
Qt-f1aeeb025c5042f6684855006f963e2203d9c153.tar.gz
Qt-f1aeeb025c5042f6684855006f963e2203d9c153.tar.bz2
Merge branch 'master' of git@scm.dev.nokia.troll.no:qt/qt
Conflicts: tools/qdoc3/test/qt-build-docs.qdocconf
Diffstat (limited to 'src/gui/image')
-rw-r--r--src/gui/image/qpixmap.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/gui/image/qpixmap.cpp b/src/gui/image/qpixmap.cpp
index 985a20b..b085c09 100644
--- a/src/gui/image/qpixmap.cpp
+++ b/src/gui/image/qpixmap.cpp
@@ -1076,6 +1076,9 @@ QPixmap QPixmap::grabWidget(QWidget * widget, const QRect &rect)
if (widget->testAttribute(Qt::WA_PendingResizeEvent) || !widget->testAttribute(Qt::WA_WState_Created))
sendResizeEvents(widget);
+ widget->d_func()->prepareToRender(QRegion(),
+ QWidget::DrawWindowBackground | QWidget::DrawChildren | QWidget::IgnoreMask);
+
QRect r(rect);
if (r.width() < 0)
r.setWidth(widget->width() - rect.x());
@@ -1086,8 +1089,8 @@ QPixmap QPixmap::grabWidget(QWidget * widget, const QRect &rect)
return QPixmap();
QPixmap res(r.size());
- widget->render(&res, QPoint(), r,
- QWidget::DrawWindowBackground | QWidget::DrawChildren | QWidget::IgnoreMask);
+ widget->d_func()->render(&res, QPoint(), r, QWidget::DrawWindowBackground
+ | QWidget::DrawChildren | QWidget::IgnoreMask, true);
return res;
}