Expand appropriate column of account selection dialog

This commit is contained in:
Sky 2013-12-14 17:01:15 +00:00
parent f15306a0ac
commit 699aba9222

View File

@ -36,8 +36,12 @@ AccountListDialog::AccountListDialog(QWidget *parent)
ui->setupUi(this); ui->setupUi(this);
m_accounts = MMC->accounts(); m_accounts = MMC->accounts();
// TODO: Make the "Active?" column show checkboxes or radio buttons.
ui->listView->setModel(m_accounts.get()); 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(); QItemSelectionModel* selectionModel = ui->listView->selectionModel();