forked from qt-creator/qt-creator
Move SDK Manager instal/uninstall checkbox to left of package name
This will makes it much easier selecting packages for install/uninstall operations, and makes more space for the package name by removing the operation column, as well as making changes more apparent by marking pending changes in bold font. Change-Id: Iec86c384195dd8c51fd8f00c1de56cdbb2bab62a Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -98,12 +98,10 @@ AndroidSdkManagerWidget::AndroidSdkManagerWidget(AndroidConfig &config,
|
||||
|
||||
auto proxyModel = new PackageFilterModel(m_sdkModel);
|
||||
m_ui->packagesView->setModel(proxyModel);
|
||||
m_ui->packagesView->header()->setSectionResizeMode(QHeaderView::ResizeToContents);
|
||||
m_ui->packagesView->header()->setSectionResizeMode(AndroidSdkModel::packageNameColumn,
|
||||
QHeaderView::ResizeToContents);
|
||||
m_ui->packagesView->header()->setSectionResizeMode(AndroidSdkModel::apiLevelColumn,
|
||||
QHeaderView::ResizeToContents);
|
||||
m_ui->packagesView->header()->setSectionResizeMode(AndroidSdkModel::packageRevisionColumn,
|
||||
QHeaderView::ResizeToContents);
|
||||
QHeaderView::Stretch);
|
||||
m_ui->packagesView->header()->setStretchLastSection(false);
|
||||
connect(m_ui->expandCheck, &QCheckBox::stateChanged, [this](int state) {
|
||||
if (state == Qt::Checked)
|
||||
m_ui->packagesView->expandAll();
|
||||
|
||||
Reference in New Issue
Block a user