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