Utils: Add some documentation for LayoutBuilder and BaseAspect

... and some related classes and an enum.

This is not a complete documentation for all aspect classes.

Change-Id: I2d98aec012394cc4016e571884b861db7a498b1b
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
This commit is contained in:
hjk
2020-09-21 09:39:54 +02:00
parent 4efad1716f
commit d97c431a00
4 changed files with 411 additions and 13 deletions

View File

@@ -53,12 +53,11 @@ public:
class LayoutItem
{
public:
LayoutItem() {} // For empty cells.
LayoutItem(QLayout *layout, int span = 1) : layout(layout), span(span) {}
LayoutItem(QWidget *widget, int span = 1, Qt::Alignment align = {})
: widget(widget), span(span), align(align) {}
LayoutItem(BaseAspect *aspect) : aspect(aspect) {}
LayoutItem(const QString &text) : text(text) {}
LayoutItem();
LayoutItem(QLayout *layout, int span = 1, Qt::Alignment align = {});
LayoutItem(QWidget *widget, int span = 1, Qt::Alignment align = {});
LayoutItem(BaseAspect *aspect);
LayoutItem(const QString &text);
QLayout *layout = nullptr;
QWidget *widget = nullptr;