--- a/ui/qt/container.h Wed Mar 26 22:20:27 2025 +0100 +++ b/ui/qt/container.h Thu Mar 27 21:28:04 2025 +0100 @@ -82,6 +82,7 @@ UIWIDGET current; virtual void add(QWidget *widget, bool fill) = 0; + virtual void end() {} }; class UiBoxContainer : public UiContainerPrivate { @@ -100,10 +101,27 @@ QGridLayout *grid; int x = 0; int y = 0; + bool def_hexpand; + bool def_vexpand; + bool def_hfill; + bool def_vfill; + bool col_expanding = false; + bool row_expanding = false; + int max_x; + int max_y; - UiGridContainer(QGridLayout *grid, int margin, int columnspacing, int rowspacing); + UiGridContainer( + QGridLayout *grid, + int margin, + int columnspacing, + int rowspacing, + bool def_hexpand, + bool def_vexpand, + bool def_hfill, + bool def_vfill); virtual void add(QWidget *widget, bool fill); + virtual void end(); }; void ui_container_add(UiObject *obj, UiContainerPrivate *ct);