diff options
author | Alessandro Portale <alessandro.portale@qt.io> | 2020-07-23 09:52:03 +0200 |
---|---|---|
committer | Alessandro Portale <alessandro.portale@qt.io> | 2020-07-23 09:04:27 +0000 |
commit | 8a8453e55d3bef1dae9212f7e957852b93ade00a (patch) | |
tree | cd9d806dcdc387cda3be04f6d242c83f8c38b014 /src/plugins/android/androidsettingswidget.cpp | |
parent | ee1b8c2f16d66c85633839baee81333117098eba (diff) | |
download | qt-creator-8a8453e55d3bef1dae9212f7e957852b93ade00a.tar.gz |
Android: Set more columns in AVD table to ResizeToContents
Give the columns with potentailly more content some space.
Change-Id: I4c213f97df077801e3b11ef09519973a61c58c4f
Reviewed-by: Assam Boudjelthia <assam.boudjelthia@qt.io>
Diffstat (limited to 'src/plugins/android/androidsettingswidget.cpp')
-rw-r--r-- | src/plugins/android/androidsettingswidget.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/plugins/android/androidsettingswidget.cpp b/src/plugins/android/androidsettingswidget.cpp index 0dff745c9c..f2f6b0208f 100644 --- a/src/plugins/android/androidsettingswidget.cpp +++ b/src/plugins/android/androidsettingswidget.cpp @@ -423,7 +423,9 @@ AndroidSettingsWidget::AndroidSettingsWidget() m_ui.CreateKitCheckBox->setChecked(m_androidConfig.automaticKitCreation()); m_ui.AVDTableView->setModel(&m_AVDModel); m_ui.AVDTableView->horizontalHeader()->setSectionResizeMode(QHeaderView::Stretch); - m_ui.AVDTableView->horizontalHeader()->setSectionResizeMode(1, QHeaderView::ResizeToContents); + for (int column : {1, 2, 5}) + m_ui.AVDTableView->horizontalHeader()->setSectionResizeMode( + column, QHeaderView::ResizeToContents); const QIcon downloadIcon = Icons::ONLINE.icon(); m_ui.downloadSDKToolButton->setIcon(downloadIcon); |