Android: Use LayoutBuilder for SDK Manager OptionsDialog

Change-Id: Ic8bfa9f73579f7717a100c538641bc8a229c946d
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
This commit is contained in:
Alessandro Portale
2024-05-02 15:53:37 +02:00
parent bf41545468
commit a90368d704

View File

@@ -17,7 +17,6 @@
#include <QAbstractButton>
#include <QDialogButtonBox>
#include <QGridLayout>
#include <QGuiApplication>
#include <QLabel>
#include <QLineEdit>
@@ -632,12 +631,13 @@ OptionsDialog::OptionsDialog(AndroidSdkManager *sdkManager, const QStringList &a
m_argumentsEdit = new QLineEdit(this);
m_argumentsEdit->setText(args.join(" "));
auto gridLayout = new QGridLayout(this);
gridLayout->addWidget(new QLabel(Tr::tr("SDK manager arguments:"), this), 0, 0, 1, 1);
gridLayout->addWidget(m_argumentsEdit, 0, 1, 1, 1);
gridLayout->addWidget(new QLabel(Tr::tr("Available arguments:"), this), 1, 0, 1, 2);
gridLayout->addWidget(m_argumentDetailsEdit, 2, 0, 1, 2);
gridLayout->addWidget(dialogButtons, 3, 0, 1, 2);
using namespace Layouting;
Column {
Form { Tr::tr("SDK manager arguments:"), m_argumentsEdit, br },
Tr::tr("Available arguments:"),
m_argumentDetailsEdit,
dialogButtons,
}.attachTo(this);
}
OptionsDialog::~OptionsDialog()