23 #include <QDialogButtonBox>
32 QString fmtVersion(version);
33 if (!extraVersion.isEmpty()) {
34 fmtVersion +=
" (" + extraVersion +
")";
36 mUI->mVersion->setText(
mUI->mVersion->text().arg(fmtVersion));
37 QString date = __DATE__;
38 mUI->mCopyright->setText(
mUI->mCopyright->text().arg(date.right(4)));
39 QString url =
"<a href=\"https://cppcheck.sourceforge.io/\">https://cppcheck.sourceforge.io/</a>";
40 mUI->mHomepage->setText(
mUI->mHomepage->text().arg(url));
41 connect(
mUI->mButtons, &QDialogButtonBox::accepted,
this, &AboutDialog::accept);
AboutDialog(const QString &version, const QString &extraVersion, QWidget *parent=nullptr)