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
+7 -1
View File
@@ -40,9 +40,13 @@ void ReaderView::setupUI() {
m_forwardButton = new QPushButton("Forward");
m_deleteButton = new QPushButton("Delete");
m_deleteButton->setStyleSheet("color: red;");
QPushButton *m_detachButton = new QPushButton("独立 (Independent)");
m_detachButton->setToolTip("Open in separate window");
actionsLayout->addWidget(m_replyButton);
actionsLayout->addWidget(m_forwardButton);
actionsLayout->addWidget(m_detachButton);
actionsLayout->addStretch();
actionsLayout->addWidget(m_deleteButton);
@@ -59,6 +63,8 @@ void ReaderView::setupUI() {
connect(m_replyButton, &QPushButton::clicked, [this]() {
if (m_bodyViewer->toPlainText().isEmpty()) return;
});
connect(m_detachButton, &QPushButton::clicked, this, &ReaderView::detachRequested);
}
void ReaderView::setMailItem(const MailItem* item) {