Fix dockwidgets behavior when window resized or central widgets is set.
authorDebao Zhang <dbzhang800@gmail.com>
Thu, 22 Dec 2011 16:27:32 +0000 (00:27 +0800)
committerQt by Nokia <qt-info@nokia.com>
Wed, 7 Mar 2012 18:52:27 +0000 (19:52 +0100)
commitb7915a4d0d97a60fc30e55eb4cc1b10e7fe9ce2f
tree955404d8d6d277e8ab9cd8295191144ef68a1aa3
parenteb709333989a7e3d8eb662a0e167ac81ca19d882
Fix dockwidgets behavior when window resized or central widgets is set.

When adding and showing a central widget in a QMainWindow then the
layout does not respect the size policy of the central widget.

This is a side effect of 059be19781a22d2e41f22072152589857d0fabf9

After the layout of QMainWindow is restored or the separator between central
widget and dock widgets is moved by user, dock widgets should keep their
size when the window if resized.

Task-number: QTBUG-15689
Change-Id: Idfccb7b4ae057a99f431c2ed54e3b9fcfb6ef54c
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
src/widgets/widgets/qdockarealayout.cpp
src/widgets/widgets/qdockarealayout_p.h
src/widgets/widgets/qmainwindowlayout.cpp
tests/auto/widgets/widgets/qmainwindow/tst_qmainwindow.cpp