forked from qt-creator/qt-creator
Layouting: Handle attach types via setter
Change-Id: I862f5cd109db3582b4f029787ec0cded2da39ce6 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
This commit is contained in:
@@ -67,16 +67,18 @@ MesonBuildSettingsWidget::MesonBuildSettingsWidget(MesonBuildConfiguration *buil
|
||||
buildDirWidget,
|
||||
optionsFilterLineEdit,
|
||||
optionsTreeView,
|
||||
}.attachTo(details, WithoutMargins);
|
||||
noMargin
|
||||
}.attachTo(details);
|
||||
|
||||
Column {
|
||||
container,
|
||||
Row { configureButton, wipeButton, }
|
||||
}.attachTo(this, WithoutMargins);
|
||||
Row { configureButton, wipeButton, noMargin }
|
||||
}.attachTo(this);
|
||||
|
||||
Form {
|
||||
buildCfg->buildDirectoryAspect(),
|
||||
}.attachTo(buildDirWidget, WithoutMargins);
|
||||
noMargin
|
||||
}.attachTo(buildDirWidget);
|
||||
|
||||
parametersLineEdit->setText(buildCfg->parameters());
|
||||
optionsFilterLineEdit->setFiltering(true);
|
||||
|
||||
@@ -29,7 +29,8 @@ ToolItemSettings::ToolItemSettings(QWidget *parent)
|
||||
Form {
|
||||
Tr::tr("Name:"), m_mesonNameLineEdit, br,
|
||||
Tr::tr("Path:"), m_mesonPathChooser, br,
|
||||
}.attachTo(this, WithoutMargins);
|
||||
noMargin
|
||||
}.attachTo(this);
|
||||
|
||||
connect(m_mesonPathChooser, &PathChooser::rawPathChanged, this, &ToolItemSettings::store);
|
||||
connect(m_mesonNameLineEdit, &QLineEdit::textChanged, this, &ToolItemSettings::store);
|
||||
|
||||
Reference in New Issue
Block a user