Android: Use less Grid features in AndroidSdkManagerWidget

Grid is only needed for the empty space in the upper right. Remove usage
of Spans.

Change-Id: Ib612589f3d19ee659af63926a13adc1e9ddbde7d
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
This commit is contained in:
Alessandro Portale
2024-05-03 16:55:45 +02:00
parent 18e12d4fe6
commit edde770676

View File

@@ -89,9 +89,10 @@ AndroidSdkManagerWidget::AndroidSdkManagerWidget(AndroidSdkManager *sdkManager,
packagesView->header()->setStretchLastSection(false); packagesView->header()->setStretchLastSection(false);
using namespace Layouting; using namespace Layouting;
Column {
Grid { Grid {
searchField, expandCheck, br, Row {searchField, expandCheck}, br,
Span(2, packagesView), packagesView,
Column { Column {
updateInstalledButton, updateInstalledButton,
st, st,
@@ -106,9 +107,10 @@ AndroidSdkManagerWidget::AndroidSdkManagerWidget(AndroidSdkManager *sdkManager,
showAllRadio, showAllRadio,
} }
}, },
optionsButton optionsButton,
}, br, }, br,
Span(3, m_buttonBox) },
m_buttonBox,
}.attachTo(this); }.attachTo(this);
connect(m_sdkModel, &AndroidSdkModel::dataChanged, this, [this] { connect(m_sdkModel, &AndroidSdkModel::dataChanged, this, [this] {