fix: responsive widths + email selection fix

- MailListView: setMinimumSectionSize(50) + setStretchLastSection(false) to allow header shrinking
- MainMainWindow: reduce folder tree min width 220->160, reader min width 350->280
- Allow splitter children to not be collapsible but shrink freely
- Fix onRowSelected slot signature to match currentRowChanged signal
This commit is contained in:
2026-08-26 12:04:37 +02:00
parent 8767d66b2a
commit e0ce893d06
2 changed files with 10 additions and 2 deletions
+4
View File
@@ -254,6 +254,10 @@ void MailListView::setupUI()
m_treeView->header()->setSectionResizeMode(EmailTreeModel::ColSubject, QHeaderView::Stretch);
m_treeView->header()->setSectionResizeMode(EmailTreeModel::ColSender, QHeaderView::Stretch);
m_treeView->header()->setSectionResizeMode(EmailTreeModel::ColDate, QHeaderView::ResizeToContents);
// Allow shrinking by setting minimum section sizes
m_treeView->header()->setMinimumSectionSize(50);
m_treeView->header()->setStretchLastSection(false);
connect(m_treeView->selectionModel(), &QItemSelectionModel::selectionChanged,
this, &MailListView::onSelectionChanged);