| 50 virtual void end() {} |
50 virtual void end() {} |
| 51 }; |
51 }; |
| 52 |
52 |
| 53 class UiBoxContainer : public UiContainerPrivate { |
53 class UiBoxContainer : public UiContainerPrivate { |
| 54 public: |
54 public: |
| 55 QBoxLayout *box; |
55 QBoxLayout *box; |
| 56 bool hasStretchedWidget = false; |
56 bool hasStretchedWidget = false; |
| 57 QSpacerItem *space; |
57 QSpacerItem *space; |
| |
58 QBoxLayout::Direction direction; |
| 58 |
59 |
| 59 UiBoxContainer(QBoxLayout *box); |
60 UiBoxContainer(QBoxLayout *box); |
| 60 |
61 |
| 61 virtual void add(QWidget *widget, UiLayout& layout); |
62 virtual void add(QWidget *widget, UiLayout& layout); |
| 62 }; |
63 }; |
| 87 |
88 |
| 88 virtual void add(QWidget *widget, UiLayout& layout); |
89 virtual void add(QWidget *widget, UiLayout& layout); |
| 89 virtual void end(); |
90 virtual void end(); |
| 90 }; |
91 }; |
| 91 |
92 |
| 92 void ui_container_add(UiObject *obj, UiContainerPrivate *ct); |
93 void ui_obj_add_container(UiObject *obj, UiContainerPrivate *ct); |
| |
94 |
| |
95 QWidget* ui_widget_set_margin(QWidget *w, int left, int right, int top, int bottom); |
| 93 |
96 |
| 94 |
97 |
| 95 #endif /* CONTAINER_H */ |
98 #endif /* CONTAINER_H */ |
| 96 |
99 |