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:
hjk
2022-07-22 18:54:04 +02:00
parent 80aef9c0ef
commit 14257a24f9
71 changed files with 211 additions and 254 deletions

View File

@@ -77,13 +77,10 @@ GenericLinuxDeviceConfigurationWizardSetupPage::GenericLinuxDeviceConfigurationW
d->userNameLineEdit = new QLineEdit(this);
using namespace Layouting;
const Break nl;
const Stretch st;
Form {
Tr::tr("The name to identify this configuration:"), d->nameLineEdit, nl,
Tr::tr("The device's host name or IP address:"), d->hostNameLineEdit, st, nl,
Tr::tr("The username to log into the device:"), d->userNameLineEdit, st, nl
Tr::tr("The name to identify this configuration:"), d->nameLineEdit, br,
Tr::tr("The device's host name or IP address:"), d->hostNameLineEdit, st, br,
Tr::tr("The username to log into the device:"), d->userNameLineEdit, st, br
}.attachTo(this);
setSubTitle(QLatin1String(" ")); // For Qt bug (background color)