QWidget::grab(): Do not call adjustSize() unconditionally.
authorFriedemann Kleint <Friedemann.Kleint@nokia.com>
Fri, 25 May 2012 12:55:44 +0000 (14:55 +0200)
committerQt by Nokia <qt-info@nokia.com>
Tue, 29 May 2012 18:12:32 +0000 (20:12 +0200)
commit65a264c4a16fc995ec2b495dd8839d9965ceb605
treeb6756023c17674779138d766aee7c72add3e91e7
parent97659d87be87550bd6a1ba6a72ff29ea3f98cf8f
QWidget::grab(): Do not call adjustSize() unconditionally.

This breaks the combo dropdown animation on Windows as it
uses special layout tricks and potentially other (unlaid-out)
widgets.

If the size is unknown, call prepareToRender instead.

Reverts d6f971c8547d7f0619b63f7e07f1c292e811b45f.

Change-Id: If44e2a7e7fb134c228674cf228bbee0d5520e04f
Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
src/widgets/kernel/qwidget.cpp