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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user