Commit graph

4 commits

Author SHA1 Message Date
23rd
c197c1831d Added ability to clear items in vertical layout. 2022-11-29 14:10:50 +03:00
John Preston
aa155db0bd Fix possible use-after-free in VerticalLayout.
If some row widgets of VerticalLayout are living
in its own lifetime() we have a use-after-free.

Because this lifetime() destroys this child row
already after ~VerticalLayout which can call back
into VerticalLayout::childHeightUpdated (the subscription
lives inside the same lifetime() as well) which
will access _rows member that was already destroyed.

Now all subscriptions die before _rows are destroyed.
2022-04-14 16:54:51 +04:00
John Preston
b051948e69 Allow reordering widgets in Ui::VerticalLayout. 2020-03-20 15:39:09 +04:00
John Preston
85c83003ca Initial commit. 2019-09-17 17:48:58 +03:00