Commit 037e0af2 authored by Laurent Montel's avatar Laurent Montel 😁

Clean up

parent 447a7bc0
......@@ -49,14 +49,8 @@ public:
void okClicked();
void slotTextChanged(const QString &text);
void slotEnabledOkButton(bool);
};
void SmtpConfigDialog::Private::slotEnabledOkButton(bool b)
{
okButton->setEnabled(b);
}
void SmtpConfigDialog::Private::okClicked()
{
configWidget->apply();
......@@ -76,7 +70,6 @@ SmtpConfigDialog::SmtpConfigDialog(Transport *transport, QWidget *parent)
Q_ASSERT(transport);
d->transport = transport;
QVBoxLayout *mainLayout = new QVBoxLayout(this);
bool pathIsEmpty = false;
d->configWidget = new SMTPConfigWidget(transport, this);
mainLayout->addWidget(d->configWidget);
QDialogButtonBox *buttonBox = new QDialogButtonBox(QDialogButtonBox::Ok | QDialogButtonBox::Cancel, this);
......@@ -88,8 +81,6 @@ SmtpConfigDialog::SmtpConfigDialog(Transport *transport, QWidget *parent)
connect(d->okButton, SIGNAL(clicked()), this, SLOT(okClicked()));
connect(buttonBox, &QDialogButtonBox::accepted, this, &SmtpConfigDialog::accept);
connect(buttonBox, &QDialogButtonBox::rejected, this, &SmtpConfigDialog::reject);
d->okButton->setEnabled(!pathIsEmpty);
}
SmtpConfigDialog::~SmtpConfigDialog()
......
......@@ -38,7 +38,6 @@ private:
Q_PRIVATE_SLOT(d, void okClicked())
Q_PRIVATE_SLOT(d, void slotTextChanged(const QString &))
Q_PRIVATE_SLOT(d, void slotEnabledOkButton(bool))
};
} // namespace MailTransport
......
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