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:
@@ -54,7 +54,8 @@ QmlJSCodeStylePreferencesWidget::QmlJSCodeStylePreferencesWidget(
|
||||
st,
|
||||
},
|
||||
m_previewTextEdit,
|
||||
}.attachTo(this, WithoutMargins);
|
||||
noMargin
|
||||
}.attachTo(this);
|
||||
|
||||
connect(TextEditorSettings::instance(), &TextEditorSettings::fontSettingsChanged,
|
||||
this, &QmlJSCodeStylePreferencesWidget::decorateEditor);
|
||||
|
||||
@@ -26,8 +26,9 @@ QmlJSCodeStyleSettingsWidget::QmlJSCodeStyleSettingsWidget(QWidget *parent)
|
||||
Form {
|
||||
Tr::tr("&Line length:"), m_lineLengthSpinBox, br,
|
||||
}
|
||||
}
|
||||
}.attachTo(this, WithoutMargins);
|
||||
},
|
||||
noMargin
|
||||
}.attachTo(this);
|
||||
|
||||
connect(m_lineLengthSpinBox, &QSpinBox::valueChanged,
|
||||
this, &QmlJSCodeStyleSettingsWidget::slotSettingsChanged);
|
||||
|
||||
Reference in New Issue
Block a user