ui/qt/container.h

changeset 102
2988f00ed9d6
parent 73
473acef47ddd
child 110
36f1581b43e2
equal deleted inserted replaced
101:1c943d43fa81 102:2988f00ed9d6
53 53
54 struct UiLayout { 54 struct UiLayout {
55 UiLayoutBool fill; 55 UiLayoutBool fill;
56 bool newline; 56 bool newline;
57 char *label; 57 char *label;
58 bool hexpand;
59 bool vexpand;
58 }; 60 };
59 61
60 struct UiContainer { 62 struct UiContainer {
61 UiLayout layout; 63 UiLayout layout;
62 UIWIDGET current; 64 UIWIDGET current;
79 class UiGridContainer : public UiContainer { 81 class UiGridContainer : public UiContainer {
80 public: 82 public:
81 QGridLayout *grid; 83 QGridLayout *grid;
82 int x = 0; 84 int x = 0;
83 int y = 0; 85 int y = 0;
84 QSpacerItem *space = NULL;
85 86
86 UiGridContainer(QGridLayout *grid); 87 UiGridContainer(QGridLayout *grid, int margin, int columnspacing, int rowspacing);
87 88
88 virtual void add(QWidget *widget, bool fill); 89 virtual void add(QWidget *widget, bool fill);
89 }; 90 };
90 91
91 class UiTabViewContainer : public UiContainer { 92 class UiTabViewContainer : public UiContainer {

mercurial