forked from qt-creator/qt-creator
Android: Use LayoutBuilder for SDK Manager OptionsDialog
Change-Id: Ic8bfa9f73579f7717a100c538641bc8a229c946d Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
This commit is contained in:
@@ -17,7 +17,6 @@
|
|||||||
|
|
||||||
#include <QAbstractButton>
|
#include <QAbstractButton>
|
||||||
#include <QDialogButtonBox>
|
#include <QDialogButtonBox>
|
||||||
#include <QGridLayout>
|
|
||||||
#include <QGuiApplication>
|
#include <QGuiApplication>
|
||||||
#include <QLabel>
|
#include <QLabel>
|
||||||
#include <QLineEdit>
|
#include <QLineEdit>
|
||||||
@@ -632,12 +631,13 @@ OptionsDialog::OptionsDialog(AndroidSdkManager *sdkManager, const QStringList &a
|
|||||||
m_argumentsEdit = new QLineEdit(this);
|
m_argumentsEdit = new QLineEdit(this);
|
||||||
m_argumentsEdit->setText(args.join(" "));
|
m_argumentsEdit->setText(args.join(" "));
|
||||||
|
|
||||||
auto gridLayout = new QGridLayout(this);
|
using namespace Layouting;
|
||||||
gridLayout->addWidget(new QLabel(Tr::tr("SDK manager arguments:"), this), 0, 0, 1, 1);
|
Column {
|
||||||
gridLayout->addWidget(m_argumentsEdit, 0, 1, 1, 1);
|
Form { Tr::tr("SDK manager arguments:"), m_argumentsEdit, br },
|
||||||
gridLayout->addWidget(new QLabel(Tr::tr("Available arguments:"), this), 1, 0, 1, 2);
|
Tr::tr("Available arguments:"),
|
||||||
gridLayout->addWidget(m_argumentDetailsEdit, 2, 0, 1, 2);
|
m_argumentDetailsEdit,
|
||||||
gridLayout->addWidget(dialogButtons, 3, 0, 1, 2);
|
dialogButtons,
|
||||||
|
}.attachTo(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
OptionsDialog::~OptionsDialog()
|
OptionsDialog::~OptionsDialog()
|
||||||
|
|||||||
Reference in New Issue
Block a user