LayoutBuilder: Allow for more compact code at calling sites

Change-Id: I12bb6dbfc138e03138b9a74d36e864d8ea36092f
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
Christian Kandeler
2019-11-07 12:22:29 +01:00
parent 8e4fb05532
commit efa9832912
13 changed files with 34 additions and 52 deletions

View File

@@ -130,8 +130,7 @@ void MainQmlFileAspect::addToLayout(LayoutBuilder &builder)
connect(m_fileListCombo, QOverload<int>::of(&QComboBox::activated),
this, &MainQmlFileAspect::setMainScript);
builder.addItem(QmlProjectRunConfiguration::tr("Main QML file:"));
builder.addItem(m_fileListCombo.data());
builder.addItems(QmlProjectRunConfiguration::tr("Main QML file:"), m_fileListCombo.data());
}
void MainQmlFileAspect::toMap(QVariantMap &map) const