Fixed tst_qpixmap::grabWidget().
authorSamuel Rødal <samuel.rodal@nokia.com>
Tue, 13 Sep 2011 12:02:02 +0000 (14:02 +0200)
committerQt by Nokia <qt-info@nokia.com>
Thu, 15 Sep 2011 07:11:35 +0000 (09:11 +0200)
commitd6f971c8547d7f0619b63f7e07f1c292e811b45f
tree2efcf5bfaf2b4cc141bedaa74151cb1e2fac38b2
parent204108d37bbe6b17b43f6cc997c369e338c274df
Fixed tst_qpixmap::grabWidget().

prepareToRender() might call adjustSize() resulting in the widget's size
changing, so we should make sure to call adjustSize() _before_ we decide
on the required pixmap dimensions.

Task-number: QTBUG-21402
Change-Id: Ie72b46bc8e8e22f848769f78187f47ae9f4e37d3
Reviewed-on: http://codereview.qt-project.org/4772
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
src/widgets/kernel/qwidget.cpp
tests/auto/gui/image/qpixmap/qpixmap.pro