Fix QTBUG-5448, make sure not only the parent's layout gets invalidated nested-layouts-fix
authorChristoph Schleifenbaum <christoph@kdab.com>
Fri, 29 Jan 2010 12:07:58 +0000 (12:07 +0000)
committerChristoph Schleifenbaum <christoph@kdab.com>
Wed, 10 Feb 2010 15:34:41 +0000 (16:34 +0100)
commit7f176e4fa3fa59db5a2fe566e92906e0334a8c92
tree94eec858e6ec88d48c8b92c79793ca5258f82fab
parent24270550463fbc81c7725595719e6e21eade2819
Fix QTBUG-5448, make sure not only the parent's layout gets invalidated
but also the one actually containing the widget and all in between.

Fix the fix for QTBUG-5448, nothing must be returned if not found, not
the parent. Make sure the parent's layout is always invalidated, as
before.

Code style, test case

More code style

style

Don't use a QList on the stack, just invalidate directly and return
true/false
src/gui/kernel/qwidget.cpp
tests/auto/qwidget/tst_qwidget.cpp