aboutsummaryrefslogtreecommitdiffstats
path: root/src/ui/smtp/SendMailDialog.cpp
diff options
context:
space:
mode:
authorSaturneric <[email protected]>2022-01-02 23:54:56 +0000
committerSaturneric <[email protected]>2022-01-02 23:54:56 +0000
commitefabb4fa3d543a1d4443b75a1f23c564ccffd8e2 (patch)
tree6531273480a7e0385fe25455c1aa44c5918e8360 /src/ui/smtp/SendMailDialog.cpp
parent<refactor>(ui): Enhanced sending email function. (diff)
downloadGpgFrontend-efabb4fa3d543a1d4443b75a1f23c564ccffd8e2.tar.gz
GpgFrontend-efabb4fa3d543a1d4443b75a1f23c564ccffd8e2.zip
<fixed, refactor>(ui): Enhanced sending email function.
1. make options changeable when init in sending email dialog.
Diffstat (limited to 'src/ui/smtp/SendMailDialog.cpp')
-rw-r--r--src/ui/smtp/SendMailDialog.cpp17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/ui/smtp/SendMailDialog.cpp b/src/ui/smtp/SendMailDialog.cpp
index 3c98dab5..e8f188c9 100644
--- a/src/ui/smtp/SendMailDialog.cpp
+++ b/src/ui/smtp/SendMailDialog.cpp
@@ -92,6 +92,16 @@ SendMailDialog::SendMailDialog(const QString& text, QWidget* parent)
ui->recipientEdit->setText(editor->getEmailList());
});
+ connect(ui->ccEditButton, &QPushButton::clicked, this, [=]() {
+ auto editor = new EmailListEditor(ui->ccEdit->text(), this);
+ ui->ccEdit->setText(editor->getEmailList());
+ });
+
+ connect(ui->bccEditButton, &QPushButton::clicked, this, [=]() {
+ auto editor = new EmailListEditor(ui->bccEdit->text(), this);
+ ui->bccEdit->setText(editor->getEmailList());
+ });
+
ui->ccButton->setText(_("CC"));
ui->bccButton->setText(_("BCC"));
ui->senderLabel->setText(_("Sender"));
@@ -380,5 +390,12 @@ void SendMailDialog::slotTestSMTPConnectionResult(const QString& result) {
QMessageBox::critical(this, _("Fail"), _("Unknown error."));
}
}
+void SendMailDialog::setContentEncryption(bool on) {
+ ui->contentEncryptCheckBox->setCheckState(on ? Qt::Checked : Qt::Unchecked);
+}
+
+void SendMailDialog::setAttachSignature(bool on) {
+ ui->attacSignatureCheckBox->setCheckState(on ? Qt::Checked : Qt::Unchecked);
+}
} // namespace GpgFrontend::UI