AboutDialog: Updated copyright year so we don't have to manually tweak it. Thank you Z3 library.
This commit is contained in:
parent
97fd51edd1
commit
0f28e7b88e
|
@ -78,7 +78,7 @@
|
|||
<item>
|
||||
<widget class="QLabel" name="mCopyright">
|
||||
<property name="text">
|
||||
<string>Copyright © 2007-2019 Cppcheck team.</string>
|
||||
<string>Copyright © 2007-%1 Cppcheck team.</string>
|
||||
</property>
|
||||
<property name="wordWrap">
|
||||
<bool>true</bool>
|
||||
|
@ -114,10 +114,11 @@ of the GNU General Public License version 3</string>
|
|||
<property name="text">
|
||||
<string><html><head/><body>
|
||||
<p>Many thanks to these libraries that we use:</p><ul>
|
||||
<li>tinyxml2</li>
|
||||
<li>picojson</li>
|
||||
<li>pcre</li>
|
||||
<li>qt</li></ul></body></html></string>
|
||||
<li>picojson</li>
|
||||
<li>qt</li>
|
||||
<li>tinyxml2</li>
|
||||
<li>z3</li></ul></body></html></string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
|
|
|
@ -31,6 +31,8 @@ AboutDialog::AboutDialog(const QString &version, const QString &extraVersion, QW
|
|||
fmtVersion += " (" + extraVersion + ")";
|
||||
}
|
||||
mUI.mVersion->setText(mUI.mVersion->text().arg(fmtVersion));
|
||||
QString date = __DATE__;
|
||||
mUI.mCopyright->setText(mUI.mCopyright->text().arg(date.right(4)));
|
||||
QString url = "<a href=\"http://cppcheck.net/\">http://cppcheck.net/</a>";
|
||||
mUI.mHomepage->setText(mUI.mHomepage->text().arg(url));
|
||||
connect(mUI.mButtons, &QDialogButtonBox::accepted, this, &AboutDialog::accept);
|
||||
|
|
Loading…
Reference in New Issue