Baseline for wino-mail-dtkqt UI migration

This commit is contained in:
2026-06-18 18:58:27 +02:00
parent 0e9f620fe0
commit 2a3a1a0470
10 changed files with 80 additions and 77 deletions
+6
View File
@@ -59,6 +59,12 @@ void MailListView::setupUI() {
m_tableView->setModel(m_proxyModel);
connect(m_tableView, &QTableView::clicked, this, &MailListView::onRowSelected);
connect(m_tableView, &QTableView::doubleClicked, this, [this](const QModelIndex &index) {
if (!index.isValid()) return;
QModelIndex sourceIndex = m_proxyModel->mapToSource(index);
int mailId = sourceIndex.data(EmailListModel::IdRole).toInt();
emit emailOpenRequested(mailId);
});
layout->addWidget(m_tableView);
}