forked from qt-creator/qt-creator
Utils: Introduce Layouting::{br,st}
... as "standard" ways to define line breaks and simple stretch. There have already been too many patterns to do it. Break() and Stretch() still work for the patches in flight, but they are planned to be removed. Change-Id: I9b70dcdc11244a904a496b0c55938dfb0b265fc8 Reviewed-by: Alessandro Portale <alessandro.portale@qt.io> Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
This commit is contained in:
@@ -103,20 +103,19 @@ AvdDialog::AvdDialog(const AndroidConfig &config, QWidget *parent)
|
||||
m_hideTipTimer.setSingleShot(true);
|
||||
|
||||
using namespace Layouting;
|
||||
const Break nl;
|
||||
|
||||
Column {
|
||||
Form {
|
||||
tr("Name:"), m_nameLineEdit, nl,
|
||||
tr("Name:"), m_nameLineEdit, br,
|
||||
tr("Device definition:"),
|
||||
Row { m_deviceDefinitionTypeComboBox, m_deviceDefinitionComboBox }, nl,
|
||||
tr("Architecture (ABI):"), m_abiComboBox, nl,
|
||||
tr("Target API:"), m_targetApiComboBox, nl,
|
||||
QString(), m_warningText, nl,
|
||||
tr("SD card size:"), m_sdcardSizeSpinBox, nl,
|
||||
Row { m_deviceDefinitionTypeComboBox, m_deviceDefinitionComboBox }, br,
|
||||
tr("Architecture (ABI):"), m_abiComboBox, br,
|
||||
tr("Target API:"), m_targetApiComboBox, br,
|
||||
QString(), m_warningText, br,
|
||||
tr("SD card size:"), m_sdcardSizeSpinBox, br,
|
||||
QString(), m_overwriteCheckBox,
|
||||
},
|
||||
Stretch(),
|
||||
st,
|
||||
m_buttonBox
|
||||
}.attachTo(this);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user