forked from qt-creator/qt-creator
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user