QXcbWindow: Don't recreate window when reparenting.
authorYoann Lopes <yoann.lopes@digia.com>
Fri, 28 Sep 2012 15:04:01 +0000 (17:04 +0200)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Mon, 1 Oct 2012 13:48:08 +0000 (15:48 +0200)
commit65d4dea41abe04ecd60aa71dd4cdb3fb7b866f9a
tree9f125f7b46023a2a26948649e3da2661ffb2690e
parent310031188c679377152eb65b8dc3f92d3799a339
QXcbWindow: Don't recreate window when reparenting.

For consistency, this behavior has been kept across Qt versions... Just
get rid of it.
Also fixes native child widgets not being notified of the change of
window handle (winId) when being reparented.

Updated auto-test.

Change-Id: I3616dc0f1c32a519d78a4846297d6d4a6e926fbf
Reviewed-by: Samuel Rødal <samuel.rodal@digia.com>
src/plugins/platforms/xcb/qxcbwindow.cpp
tests/auto/widgets/kernel/qwidget/tst_qwidget.cpp