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,26 +89,28 @@ AndroidSdkManagerWidget::AndroidSdkManagerWidget(AndroidSdkManager *sdkManager,
packagesView->header()->setStretchLastSection(false);
using namespace Layouting;
Grid {
searchField, expandCheck, br,
Span(2, packagesView),
Column {
updateInstalledButton,
st,
Group {
title(Tr::tr("Show Packages")),
Column {
Row { Tr::tr("Channel:"), channelCheckbox },
obsoleteCheckBox,
hr,
showAvailableRadio,
showInstalledRadio,
showAllRadio,
}
},
optionsButton
}, br,
Span(3, m_buttonBox)
Column {
Grid {
Row {searchField, expandCheck}, br,
packagesView,
Column {
updateInstalledButton,
st,
Group {
title(Tr::tr("Show Packages")),
Column {
Row { Tr::tr("Channel:"), channelCheckbox },
obsoleteCheckBox,
hr,
showAvailableRadio,
showInstalledRadio,
showAllRadio,
}
},
optionsButton,
}, br,
},
m_buttonBox,
}.attachTo(this);
connect(m_sdkModel, &AndroidSdkModel::dataChanged, this, [this] {