Adjust QTableView row height to fit content

This commit is contained in:
Martchus 2019-03-15 23:09:31 +01:00
parent 443e443214
commit 8e1ee51e82
1 changed files with 1 additions and 0 deletions

View File

@ -1022,6 +1022,7 @@ void MainWindow::accountSelected(const QModelIndex &selected, const QModelIndex
if (Entry *entry = m_entryModel->entry(m_entryFilterModel->mapToSource(selected))) {
if (entry->type() == EntryType::Account) {
m_fieldModel->setAccountEntry(static_cast<AccountEntry *>(entry));
m_ui->tableView->resizeRowsToContents();
return;
}
}