--- a/ui/qt/container.h Sat Apr 05 17:57:04 2025 +0200 +++ b/ui/qt/container.h Sun Jul 20 22:04:39 2025 +0200 @@ -41,14 +41,14 @@ #include <QSplitter> #define UI_APPLY_LAYOUT(layout, args) \ - layout.fill = args.fill; \ - layout.hexpand = args.hexpand; \ - layout.vexpand = args.vexpand; \ - layout.hfill = args.hfill; \ - layout.vfill = args.vfill; \ - layout.override_defaults = args.override_defaults; \ - layout.colspan = args.colspan; \ - layout.rowspan = args.rowspan + layout.fill = args->fill; \ + layout.hexpand = args->hexpand; \ + layout.vexpand = args->vexpand; \ + layout.hfill = args->hfill; \ + layout.vfill = args->vfill; \ + layout.override_defaults = args->override_defaults; \ + layout.colspan = args->colspan; \ + layout.rowspan = args->rowspan #define ui_reset_layout(layout) memset(&(layout), 0, sizeof(UiLayout)) #define ui_lb2bool(b) ((b) == UI_LAYOUT_TRUE ? TRUE : FALSE) @@ -64,7 +64,7 @@ typedef struct UiLayout UiLayout; struct UiLayout { - UiTri fill; + UiBool fill; UiBool newline; char *label; UiBool hexpand; @@ -81,7 +81,7 @@ UiLayout layout; UIWIDGET current; - virtual void add(QWidget *widget, bool fill) = 0; + virtual void add(QWidget *widget) = 0; virtual void end() {} }; @@ -93,7 +93,7 @@ UiBoxContainer(QBoxLayout *box); - virtual void add(QWidget *widget, bool fill); + virtual void add(QWidget *widget); }; class UiGridContainer : public UiContainerPrivate { @@ -120,7 +120,7 @@ bool def_hfill, bool def_vfill); - virtual void add(QWidget *widget, bool fill); + virtual void add(QWidget *widget); virtual void end(); };