Make it obvious that adding a QLayout to QSplitter is not supported.
authorMitch Curtis <mitch.curtis@digia.com>
Fri, 2 Nov 2012 16:19:59 +0000 (17:19 +0100)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Fri, 2 Nov 2012 17:07:54 +0000 (18:07 +0100)
commit61e0fa5d689264fa776aab4e8f8cd5e6f7b458de
tree5c1aaf25234131839e62ee4d23fa3c0924fa1c5c
parentb4dd6faac30c80ea3154ba19e61eec72984ad4b6
Make it obvious that adding a QLayout to QSplitter is not supported.

It does not make sense to add a QLayout to a QSplitter, since the
splitter manages its child widgets in the same manner as a QLayout.
The result of doing so is that the child widgets inside that layout
will lead to the splitter and the layout fighting to position the child
widgets.

QSplitter::addWidget should be used to add widgets directly to the
splitter instead.

Change-Id: I640b463cae8673f87354d28636bff4dd3cfb9679
Reviewed-by: Samu Voutilainen <samu.voutilainen@gmail.com>
Reviewed-by: Samuel Rødal <samuel.rodal@digia.com>
src/widgets/widgets/qsplitter.cpp
tests/auto/widgets/widgets/qsplitter/tst_qsplitter.cpp