Merge pull request #6749 from symless/issue-6748-copyright-year
Updated copyright in about to the current build year
This commit is contained in:
commit
8b4026adcf
3 changed files with 20 additions and 9 deletions
|
|
@ -1,3 +1,9 @@
|
||||||
|
v1.12.0-rc3
|
||||||
|
===========
|
||||||
|
|
||||||
|
Bug fixes:
|
||||||
|
- #6748 Copyright year in about dialog isn't updated
|
||||||
|
|
||||||
v1.12.0-rc2
|
v1.12.0-rc2
|
||||||
===========
|
===========
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -27,6 +27,16 @@ AboutDialog::AboutDialog(QWidget* parent, const QString& synergyApp) :
|
||||||
{
|
{
|
||||||
setupUi(this);
|
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);
|
m_versionChecker.setApp(synergyApp);
|
||||||
QString version = m_versionChecker.getVersion();
|
QString version = m_versionChecker.getVersion();
|
||||||
#ifdef SYNERGY_REVISION
|
#ifdef SYNERGY_REVISION
|
||||||
|
|
@ -39,6 +49,9 @@ AboutDialog::AboutDialog(QWidget* parent, const QString& synergyApp) :
|
||||||
QDate buildDate = QLocale("en_US").toDate(buildDateString, "MMM d yyyy");
|
QDate buildDate = QLocale("en_US").toDate(buildDateString, "MMM d yyyy");
|
||||||
m_pLabelBuildDate->setText(buildDate.toString(Qt::SystemLocaleLongDate));
|
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
|
// change default size based on os
|
||||||
#if defined(Q_OS_MAC)
|
#if defined(Q_OS_MAC)
|
||||||
QSize size(600, 380);
|
QSize size(600, 380);
|
||||||
|
|
|
||||||
|
|
@ -50,15 +50,7 @@
|
||||||
</sizepolicy>
|
</sizepolicy>
|
||||||
</property>
|
</property>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string><p>
|
<string></string>
|
||||||
Keyboard and mouse sharing application. Cross platform and open source.<br /><br />
|
|
||||||
Copyright © 2012-2019 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></string>
|
|
||||||
</property>
|
</property>
|
||||||
<property name="margin">
|
<property name="margin">
|
||||||
<number>1</number>
|
<number>1</number>
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue