summaryrefslogtreecommitdiffstats
path: root/gui/dialogs/AccountListDialog.cpp
diff options
context:
space:
mode:
authorSky <git@bunnies.cc>2013-12-14 17:01:15 +0000
committerSky <git@bunnies.cc>2013-12-14 17:01:15 +0000
commit699aba9222ff5d678c9a42268fc719d064c8d99f (patch)
treeffbcc5dd4adafd54b28111156e3cddd706e34c2c /gui/dialogs/AccountListDialog.cpp
parentf15306a0ac0b9e449344da07fd6304c5704c0913 (diff)
downloadMultiMC-699aba9222ff5d678c9a42268fc719d064c8d99f.tar
MultiMC-699aba9222ff5d678c9a42268fc719d064c8d99f.tar.gz
MultiMC-699aba9222ff5d678c9a42268fc719d064c8d99f.tar.lz
MultiMC-699aba9222ff5d678c9a42268fc719d064c8d99f.tar.xz
MultiMC-699aba9222ff5d678c9a42268fc719d064c8d99f.zip
Expand appropriate column of account selection dialog
Diffstat (limited to 'gui/dialogs/AccountListDialog.cpp')
-rw-r--r--gui/dialogs/AccountListDialog.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/gui/dialogs/AccountListDialog.cpp b/gui/dialogs/AccountListDialog.cpp
index 91b2ac55..242590fb 100644
--- a/gui/dialogs/AccountListDialog.cpp
+++ b/gui/dialogs/AccountListDialog.cpp
@@ -36,8 +36,12 @@ AccountListDialog::AccountListDialog(QWidget *parent)
ui->setupUi(this);
m_accounts = MMC->accounts();
- // TODO: Make the "Active?" column show checkboxes or radio buttons.
+
ui->listView->setModel(m_accounts.get());
+ ui->listView->header()->setSectionResizeMode(QHeaderView::ResizeToContents);
+
+ // Expand the account column
+ ui->listView->header()->setSectionResizeMode(1, QHeaderView::Stretch);
QItemSelectionModel* selectionModel = ui->listView->selectionModel();