diff options
author | Piotr Srebrny <piotr.srebrny@qt.io> | 2021-04-28 14:37:44 +0200 |
---|---|---|
committer | Piotr Srebrny <piotr.srebrny@qt.io> | 2021-05-11 16:57:17 +0000 |
commit | 867c0b8d8a53974074b1fff5b132f3ae9f150066 (patch) | |
tree | 3096671fa5d48c00df7e6d7e0ba7b3738e6932b1 /cmake/FindWrapSystemPNG.cmake | |
parent | 1e85dfacf3479ebbe5a4502895b8b8d93fbe1477 (diff) |
Do not remove non-widget items when removeWidget() called with nullptr
child->widget() returns null if the layout item is not a widget.
Thus, calling removeWidget(nullptr) will remove all non-widget items
such as layouts or strechers.
Change-Id: I772c1158d0f7e8e2850b6e571b0405a2896f09b8
Pick-to: 6.0 6.1 5.15
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
Reviewed-by: David Faure <david.faure@kdab.com>
Diffstat (limited to 'cmake/FindWrapSystemPNG.cmake')
0 files changed, 0 insertions, 0 deletions