GUI: modernize connect in AboutDialog

This commit is contained in:
Daniel Marjamäki 2017-07-31 10:16:23 +02:00
parent 2f554e82ff
commit ea95398123
1 changed files with 1 additions and 1 deletions

View File

@ -33,5 +33,5 @@ AboutDialog::AboutDialog(const QString &version, const QString &extraVersion, QW
mUI.mVersion->setText(mUI.mVersion->text().arg(fmtVersion));
QString url = "<a href=\"http://cppcheck.net/\">http://cppcheck.net/</a>";
mUI.mHomepage->setText(mUI.mHomepage->text().arg(url));
connect(mUI.mButtons, SIGNAL(accepted()), this, SLOT(accept()));
connect(mUI.mButtons, &QDialogButtonBox::accepted, this, &AboutDialog::accept);
}