diff options
author | Jan Arve Saether <jan-arve.saether@theqtcompany.com> | 2015-03-13 14:49:51 +0100 |
---|---|---|
committer | Jan Arve Sæther <jan-arve.saether@theqtcompany.com> | 2015-03-26 09:26:41 +0000 |
commit | d59638f21d7ea7c2a7f5c57b3eca27da984a1917 (patch) | |
tree | 6e257baf7bd2393b905e6e41bf1fdcc0d1928f42 /qtbase.pro | |
parent | 7dd5726380f5d5422edd4b71c6beba6d02b4e3df (diff) |
Fixed bug in QLayout::replaceWidget()
If the \a to widget was already part of a layout it would be removed from
the layout. This happened because the function that was supposed to
perform this removal was called after we had done the replacement.
QLayout::addChildWidget() should therefore be called first. This is also
documented in QLayout::addChildWidget()
Change-Id: Ie718935a14ebad81827fad962920e930263c05b8
Task-number: QTBUG-37724
Reviewed-by: Thorbjørn Lund Martsum <tmartsum@gmail.com>
Diffstat (limited to 'qtbase.pro')
0 files changed, 0 insertions, 0 deletions