From 8e1ee51e82bd1726f58c2dc5fda3ff29302016dd Mon Sep 17 00:00:00 2001 From: Martchus Date: Fri, 15 Mar 2019 23:09:31 +0100 Subject: [PATCH] Adjust QTableView row height to fit content --- gui/mainwindow.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/gui/mainwindow.cpp b/gui/mainwindow.cpp index 66bb4f1..4914428 100644 --- a/gui/mainwindow.cpp +++ b/gui/mainwindow.cpp @@ -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(entry)); + m_ui->tableView->resizeRowsToContents(); return; } }