summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <[email protected]>2017-08-08 22:12:31 +0200
committerMontel Laurent <[email protected]>2017-08-08 22:12:31 +0200
commit000aaff03eb54b356f0fb715272a326f85cd3b9c (patch)
tree50e5cb522d1b39e8d08588b638ad06b088a6e76f
parentc18f6986c16b9d54dc28e7d6c558fa803bf0c4b2 (diff)
Use QOverload
-rw-r--r--src/kmailtransport/plugins/smtp/smtpconfigwidget.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/kmailtransport/plugins/smtp/smtpconfigwidget.cpp b/src/kmailtransport/plugins/smtp/smtpconfigwidget.cpp
index a109dc8..f0cb8f9 100644
--- a/src/kmailtransport/plugins/smtp/smtpconfigwidget.cpp
+++ b/src/kmailtransport/plugins/smtp/smtpconfigwidget.cpp
@@ -172,7 +172,7 @@ void SMTPConfigWidget::init()
connect(d->ui.checkCapabilities, &QPushButton::clicked, this, &SMTPConfigWidget::checkSmtpCapabilities);
connect(d->ui.kcfg_host, &QLineEdit::textChanged, this, &SMTPConfigWidget::hostNameChanged);
- connect(d->encryptionGroup, static_cast<void (QButtonGroup::*)(int)>(&QButtonGroup::buttonClicked), this, &SMTPConfigWidget::encryptionChanged);
+ connect(d->encryptionGroup, QOverload<int>::of(&QButtonGroup::buttonClicked), this, &SMTPConfigWidget::encryptionChanged);
connect(d->ui.kcfg_requiresAuthentication, &QCheckBox::toggled, this, &SMTPConfigWidget::ensureValidAuthSelection);
if (!d->transport->isValid()) {
@@ -213,8 +213,7 @@ void SMTPConfigWidget::checkSmtpCapabilities()
qApp->setOverrideCursor(Qt::BusyCursor);
connect(d->serverTest, &ServerTest::finished, this, &SMTPConfigWidget::slotFinished);
- connect(d->serverTest, &ServerTest::finished, qApp, [](){
- qApp->restoreOverrideCursor();
+ connect(d->serverTest, &ServerTest::finished, qApp, [](){ qApp->restoreOverrideCursor();
});
d->ui.checkCapabilities->setEnabled(false);
d->serverTest->start();