Fix window positioning regression.
authorMiikka Heikkinen <miikka.heikkinen@digia.com>
Tue, 28 Feb 2012 08:22:27 +0000 (10:22 +0200)
committerQt by Nokia <qt-info@nokia.com>
Tue, 28 Feb 2012 10:00:56 +0000 (11:00 +0100)
commit76225943555cf3540d137875c09e4e8db8fd33fb
treea172f9fd84cbfacb7864a5c95f87841a1ddbbfc4
parent24398afa413d38c4fc38d09d1a218cf514ed3987
Fix window positioning regression.

The fix to bug QTBUG-10589 has affected the style flags of windows,
which indirectly changed how their initial position is determined.
Fixed initial position for windows with WS_POPUP style so that x and y
cannot go negative, which makes QMainWindows with larger than screen
initial dimensions to behave identically to Qt 4.7.4.

Task-number: QTBUG-24071
Change-Id: Ie38cdd206df4be21cce823d7d94a4690a7cb01e1
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
src/gui/kernel/qwidget_win.cpp