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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user