Commit 35263bf8 authored by Laurent Montel's avatar Laurent Montel 😁

Add title

parent 4c16b292
......@@ -48,4 +48,6 @@ void CheckBeforeSendUpdateSmtpDialogTest::shouldHaveDefaultValue()
QDialogButtonBox *buttonBox = w.findChild<QDialogButtonBox *>(QStringLiteral("buttonbox"));
QVERIFY(buttonBox);
QVERIFY(!w.windowTitle().isEmpty());
}
......@@ -28,14 +28,16 @@
CheckBeforeSendUpdateSmtpDialog::CheckBeforeSendUpdateSmtpDialog(QWidget *parent)
: QDialog(parent)
{
setWindowTitle(i18n("Check SMTP server"));
QVBoxLayout *mainLayout = new QVBoxLayout(this);
mainLayout->setObjectName(QStringLiteral("mainlayout"));
QLabel *lab = new QLabel(i18n(""), this);
QLabel *lab = new QLabel(i18n("Do you want to send the email with a different SMTP than the one defined in the current identity?"), this);
lab->setObjectName(QStringLiteral("label"));
lab->setWordWrap(true);
mainLayout->addWidget(lab);
QCheckBox *mChangeSmtp = new QCheckBox(i18n("..."), this);
QCheckBox *mChangeSmtp = new QCheckBox(i18n("Update SMTP server"), this);
mChangeSmtp->setObjectName(QStringLiteral("changesmtp"));
mChangeSmtp->setChecked(false);
mainLayout->addWidget(mChangeSmtp);
......@@ -51,3 +53,7 @@ CheckBeforeSendUpdateSmtpDialog::~CheckBeforeSendUpdateSmtpDialog()
}
bool CheckBeforeSendUpdateSmtpDialog::changeSmtp() const
{
return mChangeSmtp->isChecked();
}
......@@ -28,6 +28,8 @@ class CheckBeforeSendUpdateSmtpDialog : public QDialog
public:
explicit CheckBeforeSendUpdateSmtpDialog(QWidget *parent = nullptr);
~CheckBeforeSendUpdateSmtpDialog();
bool changeSmtp() const;
private:
QCheckBox *mChangeSmtp;
};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment