Baseline for wino-mail-dtkqt UI migration
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user