ui/qt/container.h

changeset 672
1b08ba076b65
parent 670
d676b2c5e93b
child 802
cc73993a3ff9
equal deleted inserted replaced
671:0ab4c7a18660 672:1b08ba076b65
79 79
80 struct UiContainerPrivate { 80 struct UiContainerPrivate {
81 UiLayout layout; 81 UiLayout layout;
82 UIWIDGET current; 82 UIWIDGET current;
83 83
84 virtual void add(QWidget *widget, bool fill) = 0; 84 virtual void add(QWidget *widget) = 0;
85 virtual void end() {} 85 virtual void end() {}
86 }; 86 };
87 87
88 class UiBoxContainer : public UiContainerPrivate { 88 class UiBoxContainer : public UiContainerPrivate {
89 public: 89 public:
91 bool hasStretchedWidget = false; 91 bool hasStretchedWidget = false;
92 QSpacerItem *space; 92 QSpacerItem *space;
93 93
94 UiBoxContainer(QBoxLayout *box); 94 UiBoxContainer(QBoxLayout *box);
95 95
96 virtual void add(QWidget *widget, bool fill); 96 virtual void add(QWidget *widget);
97 }; 97 };
98 98
99 class UiGridContainer : public UiContainerPrivate { 99 class UiGridContainer : public UiContainerPrivate {
100 public: 100 public:
101 QGridLayout *grid; 101 QGridLayout *grid;
118 bool def_hexpand, 118 bool def_hexpand,
119 bool def_vexpand, 119 bool def_vexpand,
120 bool def_hfill, 120 bool def_hfill,
121 bool def_vfill); 121 bool def_vfill);
122 122
123 virtual void add(QWidget *widget, bool fill); 123 virtual void add(QWidget *widget);
124 virtual void end(); 124 virtual void end();
125 }; 125 };
126 126
127 void ui_container_add(UiObject *obj, UiContainerPrivate *ct); 127 void ui_container_add(UiObject *obj, UiContainerPrivate *ct);
128 128

mercurial