forked from qt-creator/qt-creator
LayoutBuilder: Allow for more compact code at calling sites
Change-Id: I12bb6dbfc138e03138b9a74d36e864d8ea36092f Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -251,10 +251,8 @@ QWidget *RunConfiguration::createConfigurationWidget()
|
||||
{
|
||||
LayoutBuilder builder(widget);
|
||||
for (ProjectConfigurationAspect *aspect : m_aspects) {
|
||||
if (aspect->isVisible()) {
|
||||
builder.startNewRow();
|
||||
aspect->addToLayout(builder);
|
||||
}
|
||||
if (aspect->isVisible())
|
||||
aspect->addToLayout(builder.startNewRow());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user