#6748 Set current build year in copyright statement

This commit is contained in:
Jamie Newbon 2020-08-18 13:55:25 +01:00
parent 760f976988
commit 91c90523d3
2 changed files with 14 additions and 9 deletions

View file

@ -27,6 +27,16 @@ AboutDialog::AboutDialog(QWidget* parent, const QString& synergyApp) :
{
setupUi(this);
QString aboutText(R"(<p>
Keyboard and mouse sharing application. Cross platform and open source.<br /><br />
Copyright © 2012-%%YEAR%% Symless Ltd.<br />
Copyright © 2002-2012 Chris Schoeneman, Nick Bolton, Volker Lanz.<br /><br />
Synergy is released under the GNU General Public License (GPLv2).<br /><br />
Synergy is based on CosmoSynergy by Richard Lee and Adam Feder.<br />
The Synergy GUI is based on QSynergy by Volker Lanz.<br /><br />
Visit our website for help and info (symless.com).
</p>)");
m_versionChecker.setApp(synergyApp);
QString version = m_versionChecker.getVersion();
#ifdef SYNERGY_REVISION
@ -39,6 +49,9 @@ AboutDialog::AboutDialog(QWidget* parent, const QString& synergyApp) :
QDate buildDate = QLocale("en_US").toDate(buildDateString, "MMM d yyyy");
m_pLabelBuildDate->setText(buildDate.toString(Qt::SystemLocaleLongDate));
//Sets the current build year into the copyright text
label_3->setText(aboutText.replace(QString("%%YEAR%%"), QString::number(buildDate.year())));
// change default size based on os
#if defined(Q_OS_MAC)
QSize size(600, 380);

View file

@ -50,15 +50,7 @@
</sizepolicy>
</property>
<property name="text">
<string>&lt;p&gt;
Keyboard and mouse sharing application. Cross platform and open source.&lt;br /&gt;&lt;br /&gt;
Copyright © 2012-2019 Symless Ltd.&lt;br /&gt;
Copyright © 2002-2012 Chris Schoeneman, Nick Bolton, Volker Lanz.&lt;br /&gt;&lt;br /&gt;
Synergy is released under the GNU General Public License (GPLv2).&lt;br /&gt;&lt;br /&gt;
Synergy is based on CosmoSynergy by Richard Lee and Adam Feder.&lt;br /&gt;
The Synergy GUI is based on QSynergy by Volker Lanz.&lt;br /&gt;&lt;br /&gt;
Visit our website for help and info (symless.com).
&lt;/p&gt;</string>
<string></string>
</property>
<property name="margin">
<number>1</number>