Commit 69e3b0cd authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Make it compile against qt5.15

parent 0516d1dd
......@@ -180,7 +180,12 @@ void SMTPConfigWidget::init()
connect(d->ui.checkCapabilities, &QPushButton::clicked, this, &SMTPConfigWidget::checkSmtpCapabilities);
connect(d->ui.kcfg_host, &QLineEdit::textChanged, this, &SMTPConfigWidget::hostNameChanged);
#if QT_VERSION < QT_VERSION_CHECK(5, 15, 0)
connect(d->encryptionGroup, qOverload<int>(&QButtonGroup::buttonClicked), this, &SMTPConfigWidget::encryptionChanged);
#else
connect(d->encryptionGroup, &QButtonGroup::buttonClicked, this, &SMTPConfigWidget::encryptionAbstractButtonChanged);
#endif
connect(d->ui.kcfg_requiresAuthentication, &QCheckBox::toggled, this, &SMTPConfigWidget::ensureValidAuthSelection);
connect(d->ui.kcfg_storePassword, &QCheckBox::toggled, this, &SMTPConfigWidget::enablePasswordLine);
if (!d->transport->isValid()) {
......@@ -349,6 +354,14 @@ void SMTPConfigWidget::ensureValidAuthSelection()
d->enablePasswordLine();
}
void SMTPConfigWidget::encryptionAbstractButtonChanged(QAbstractButton *button)
{
Q_D(SMTPConfigWidget);
if (button) {
encryptionChanged(d->encryptionGroup->id(button));
}
}
void SMTPConfigWidget::encryptionChanged(int enc)
{
Q_D(SMTPConfigWidget);
......
......@@ -27,6 +27,7 @@
#define MAILTRANSPORT_SMTPCONFIGWIDGET_H
#include "widgets/transportconfigwidget.h"
class QAbstractButton;
namespace MailTransport {
class Transport;
......@@ -59,6 +60,7 @@ private Q_SLOTS:
void ensureValidAuthSelection();
private:
void encryptionAbstractButtonChanged(QAbstractButton *button);
Q_DECLARE_PRIVATE(SMTPConfigWidget)
void init();
......
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