forked from qt-creator/qt-creator
Layouting: Code cosmetics
Change-Id: I0eea49bc5c39679ca66f73616a98e91546e493c2 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user