ui/qt/container.h

changeset 959
4b2202df31ec
parent 822
54e43e4efac2
equal deleted inserted replaced
958:749a8a36d74b 959:4b2202df31ec
37 #include <QBoxLayout> 37 #include <QBoxLayout>
38 #include <QGridLayout> 38 #include <QGridLayout>
39 #include <QTabWidget> 39 #include <QTabWidget>
40 #include <QStackedWidget> 40 #include <QStackedWidget>
41 #include <QSplitter> 41 #include <QSplitter>
42 #include <QGroupBox>
42 43
43 #define ui_obj_container(obj) (UiContainerPrivate*)((UiContainerX*)obj->container_end)->container 44 #define ui_obj_container(obj) (UiContainerPrivate*)((UiContainerX*)obj->container_end)->container
44 45
45 struct UiContainerPrivate { 46 struct UiContainerPrivate {
46 UIWIDGET current; 47 UIWIDGET current;
52 53
53 class UiBoxContainer : public UiContainerPrivate { 54 class UiBoxContainer : public UiContainerPrivate {
54 public: 55 public:
55 QBoxLayout *box; 56 QBoxLayout *box;
56 bool hasStretchedWidget = false; 57 bool hasStretchedWidget = false;
58 bool singleChild = false;
59 bool hasChild = false;
57 QSpacerItem *space; 60 QSpacerItem *space;
58 QBoxLayout::Direction direction; 61 QBoxLayout::Direction direction;
59 62
60 UiBoxContainer(QBoxLayout *box); 63 UiBoxContainer(QBoxLayout *box);
61 64

mercurial