diff options
author | Olivier Goffart <ogoffart@woboq.com> | 2017-09-20 11:14:48 +0300 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2017-10-05 23:01:35 +0300 |
commit | 7aca2352be51701b0f1bdcc3b20e2215af14cb93 (patch) | |
tree | 4b715524859fffe94d4004da8f4c2341edc9eb3a /src/gui/authenticationdialog.cpp | |
parent | 3143b32aa5494f1a9a391216a5acf6b39cacf29b (diff) |
Use the Qt5 connection syntax (automated with clazy)
This is motivated by the fact that QMetaObject::noralizeSignature takes 7.35%
CPU of the LargeSyncBench. (Mostly from ABstractNetworkJob::setupConnections and
PropagateUploadFileV1::startNextChunk). It could be fixed by using normalized
signature in the connection statement, but i tought it was a good oportunity
to modernize the code.
This commit only contains calls that were automatically converted with clazy.
Diffstat (limited to 'src/gui/authenticationdialog.cpp')
-rw-r--r-- | src/gui/authenticationdialog.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/authenticationdialog.cpp b/src/gui/authenticationdialog.cpp index bae0bcd13..80fea6321 100644 --- a/src/gui/authenticationdialog.cpp +++ b/src/gui/authenticationdialog.cpp @@ -40,8 +40,8 @@ AuthenticationDialog::AuthenticationDialog(const QString &realm, const QString & _password->setEchoMode(QLineEdit::Password); QDialogButtonBox *box = new QDialogButtonBox(QDialogButtonBox::Ok | QDialogButtonBox::Cancel, Qt::Horizontal); - connect(box, SIGNAL(accepted()), this, SLOT(accept())); - connect(box, SIGNAL(rejected()), this, SLOT(reject())); + connect(box, &QDialogButtonBox::accepted, this, &QDialog::accept); + connect(box, &QDialogButtonBox::rejected, this, &QDialog::reject); lay->addWidget(box); } |