diff --git a/gui/aboutdialog.cpp b/gui/aboutdialog.cpp index 3f9fb91b7..561910b16 100644 --- a/gui/aboutdialog.cpp +++ b/gui/aboutdialog.cpp @@ -33,5 +33,5 @@ AboutDialog::AboutDialog(const QString &version, const QString &extraVersion, QW mUI.mVersion->setText(mUI.mVersion->text().arg(fmtVersion)); QString url = "http://cppcheck.net/"; mUI.mHomepage->setText(mUI.mHomepage->text().arg(url)); - connect(mUI.mButtons, SIGNAL(accepted()), this, SLOT(accept())); + connect(mUI.mButtons, &QDialogButtonBox::accepted, this, &AboutDialog::accept); }