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:
@@ -177,15 +177,15 @@ DockerDeviceWidget::DockerDeviceWidget(const IDevice::Ptr &device)
|
||||
using namespace Layouting;
|
||||
|
||||
Form {
|
||||
repoLabel, m_repoLineEdit, Break(),
|
||||
tagLabel, m_tagLineEdit, Break(),
|
||||
idLabel, m_idLineEdit, Break(),
|
||||
daemonStateLabel, m_daemonReset, m_daemonState, Break(),
|
||||
m_runAsOutsideUser, Break(),
|
||||
repoLabel, m_repoLineEdit, br,
|
||||
tagLabel, m_tagLineEdit, br,
|
||||
idLabel, m_idLineEdit, br,
|
||||
daemonStateLabel, m_daemonReset, m_daemonState, br,
|
||||
m_runAsOutsideUser, br,
|
||||
Column {
|
||||
pathListLabel,
|
||||
m_pathsListEdit,
|
||||
}, Break(),
|
||||
}, br,
|
||||
Column {
|
||||
Space(20),
|
||||
Row {
|
||||
@@ -196,9 +196,9 @@ DockerDeviceWidget::DockerDeviceWidget(const IDevice::Ptr &device)
|
||||
autoDetectButton,
|
||||
undoAutoDetectButton,
|
||||
listAutoDetectedButton,
|
||||
Stretch(),
|
||||
st,
|
||||
},
|
||||
new QLabel(Tr::tr("Detection log:")),
|
||||
Tr::tr("Detection log:"),
|
||||
logView
|
||||
}
|
||||
}.attachTo(this);
|
||||
|
||||
Reference in New Issue
Block a user