Layouting: Code cosmetics

Change-Id: I0eea49bc5c39679ca66f73616a98e91546e493c2
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
hjk
2023-05-03 07:53:28 +02:00
parent 8b2f9b5d9c
commit 328d4c7295
2 changed files with 32 additions and 48 deletions

View File

@@ -323,7 +323,7 @@ void doAddWidget(LayoutBuilder &builder, QWidget *widget)
A LayoutBuilder instance is typically used locally within a function and never stored.
\sa addItem(), addItems(), addRow(), finishRow()
\sa addItem(), addItems(), addRow()
*/
@@ -351,24 +351,15 @@ void LayoutBuilder::addRow(const LayoutItems &items)
addItems(items);
}
/*!
Instructs a layout builder to finish the current row.
This is implicitly called by LayoutBuilder's destructor.
*/
void LayoutItem::finishRow()
{
addItem(br);
}
/*!
This starts a new row containing \a items. The row can be further extended by
other items using \c addItem() or \c addItems().
\sa finishRow(), addItem(), addItems()
\sa addItem(), addItems()
*/
void LayoutItem::addRow(const LayoutItems &items)
{
finishRow();
addItem(br);
addItems(items);
}