diff options
author | Friedemann Kleint <Friedemann.Kleint@nokia.com> | 2012-05-25 15:51:39 +0200 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-05-29 20:12:39 +0200 |
commit | a09c20f19b92fd4d88ee2ce487aa99322fcce20a (patch) | |
tree | aaf0a2356133ea31032a12485b7f356b00af658b /src/plugins/platforms/windows | |
parent | 65a264c4a16fc995ec2b495dd8839d9965ceb605 (diff) |
QWidget::grab: Add a default value for the QRect parameter.
The documentation is misleading in that a default-constructed
rectangle that has size = 0 causes the entire widget to be
painted; this happens only if the one of the size values is
< 0.
Add a default value such that size < 0 and the entire widget is
painted based on the rationale that a size = 0 might be the result
of some calculation and it would be unexpected to get a pixmap
containing the entire widget in that case.
Change-Id: I2a5fb38cd407b4b64348213101d8196b2c40ad9a
Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
Diffstat (limited to 'src/plugins/platforms/windows')
0 files changed, 0 insertions, 0 deletions