Further fixes to widget masking
authorMiikka Heikkinen <miikka.heikkinen@digia.com>
Wed, 27 Jun 2012 14:15:42 +0000 (17:15 +0300)
committerQt by Nokia <qt-info@nokia.com>
Thu, 28 Jun 2012 08:18:15 +0000 (10:18 +0200)
commitbbb15b4612946851d7d81940a9cd6e3a3753c3f2
treec6448a269139ac5632982cde8455bd2de9c70cb4
parent4dd2de9c7676220d2ac47f679ae05719078da0d0
Further fixes to widget masking

If mask was set to a widget before the widget was shown,
the mask was not applied.

Also, if toplevel widgets were set a mask in Windows, the mask was
applied to frame coordinates instead of client coordinates.

Ported relevant code from Qt4 to fix these issues.

Change-Id: Id6187cf4952b81b5b60c167e2fd284b7dc83ed9c
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
src/plugins/platforms/windows/qwindowswindow.cpp
src/widgets/kernel/qwidget_qpa.cpp