Use native handles for parent change check in QWindowsWindow.
authorMiikka Heikkinen <miikka.heikkinen@digia.com>
Wed, 8 Aug 2012 10:48:29 +0000 (13:48 +0300)
committerQt by Nokia <qt-info@nokia.com>
Thu, 9 Aug 2012 11:17:39 +0000 (13:17 +0200)
commit2ccd34fd20b72a1cd4125d67dd206d4f968a1b5d
tree8da02e7c5d0bf7b1a51a2da62940a315efdbcdd8
parent5c6382099285768d441a589db392aa3b0c795517
Use native handles for parent change check in QWindowsWindow.

QWindow::setParent() sets the parent to zero instead of the desired
parent, if platform window has not yet been created for the parent.
This caused QWindowsWindow::setParent() to skip setting the parent
later, when correct window was specified, as the QWindow parent-child
relationship hadn't changed. Fixed by changing the the check to use
native handles instead.

Task-number: QTBUG-26791
Change-Id: I292a1ddf746583a7268f2d07c20166995c0dd7d6
Reviewed-by: Joerg Bornemann <joerg.bornemann@nokia.com>
src/plugins/platforms/windows/qwindowswindow.cpp