13#include "../Window_p.h"
14#include "core/View_p.h"
15#include "core/layouting/Item_p.h"
16#include "ViewWrapper_p.h"
33 , View_qt(controller, type, this)
41 , View_qt(controller, type, this)
49 , View_qt(controller, type, this)
57 , View_qt(controller, type, this)
65 , View_qt(controller, type, this)
73 , View_qt(controller, type, this)
82 return std::shared_ptr<Core::Window>(
new Window(root));
93 T::setMaximumSize(sz);
94 d->layoutInvalidated.emit();
102 d->layoutInvalidated.emit();
118 d->layoutInvalidated.emit();
127 return ViewWrapper::create(child);
136 return ViewWrapper::create(w);
146 return ViewWrapper::create(p);
155 return ViewWrapper::create(
this);
163 const QObjectList &children = parent->
children();
164 result.
reserve(children.size());
165 for (
QObject *child : children) {
166 if (
auto widget = qobject_cast<QWidget *>(child)) {
167 result.
push_back(ViewWrapper::create(widget));
186 max = max.
boundedTo(Core::Item::hardcodedMaximumSize);
189 if (max.
width() <= 0)
190 max.
setWidth(Core::Item::hardcodedMaximumSize.width());
192 max.
setHeight(Core::Item::hardcodedMaximumSize.height());
QEvent::Type type() const const
const QObjectList & children() const const
QSize boundedTo(const QSize &otherSize) const const
QSize expandedTo(const QSize &otherSize) const const
void setHeight(int height)
void push_back(const T &value)