Merge pull request #2503 from Diapolo/copyright-year
new COPYRIGHT_YEAR macro in clientversion.h
This commit is contained in:
commit
3656a3c558
@ -330,8 +330,15 @@ TSQM.CONFIG = no_link
|
|||||||
QMAKE_EXTRA_COMPILERS += TSQM
|
QMAKE_EXTRA_COMPILERS += TSQM
|
||||||
|
|
||||||
# "Other files" to show in Qt Creator
|
# "Other files" to show in Qt Creator
|
||||||
OTHER_FILES += \
|
OTHER_FILES += README.md \
|
||||||
doc/*.rst doc/*.txt doc/README README.md res/bitcoin-qt.rc src/test/*.cpp src/test/*.h src/qt/test/*.cpp src/qt/test/*.h
|
doc/*.rst \
|
||||||
|
doc/*.txt \
|
||||||
|
doc/README \
|
||||||
|
src/qt/res/bitcoin-qt.rc \
|
||||||
|
src/test/*.cpp \
|
||||||
|
src/test/*.h \
|
||||||
|
src/qt/test/*.cpp \
|
||||||
|
src/qt/test/*.h
|
||||||
|
|
||||||
# platform specific defaults, if not overridden on command line
|
# platform specific defaults, if not overridden on command line
|
||||||
isEmpty(BOOST_LIB_SUFFIX) {
|
isEmpty(BOOST_LIB_SUFFIX) {
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
#define CLIENTVERSION_H
|
#define CLIENTVERSION_H
|
||||||
|
|
||||||
//
|
//
|
||||||
// client versioning
|
// client versioning and copyright year
|
||||||
//
|
//
|
||||||
|
|
||||||
// These need to be macros, as version.cpp's and bitcoin-qt.rc's voodoo requires it
|
// These need to be macros, as version.cpp's and bitcoin-qt.rc's voodoo requires it
|
||||||
@ -14,6 +14,10 @@
|
|||||||
// Set to true for release, false for prerelease or test build
|
// Set to true for release, false for prerelease or test build
|
||||||
#define CLIENT_VERSION_IS_RELEASE false
|
#define CLIENT_VERSION_IS_RELEASE false
|
||||||
|
|
||||||
|
// Copyright year (2009-this)
|
||||||
|
// Todo: update this when changing our copyright comments in the source
|
||||||
|
#define COPYRIGHT_YEAR 2013
|
||||||
|
|
||||||
// Converts the parameter X to a string after macro replacement on X has been performed.
|
// Converts the parameter X to a string after macro replacement on X has been performed.
|
||||||
// Don't merge these into one macro!
|
// Don't merge these into one macro!
|
||||||
#define STRINGIZE(X) DO_STRINGIZE(X)
|
#define STRINGIZE(X) DO_STRINGIZE(X)
|
||||||
|
@ -2,10 +2,7 @@
|
|||||||
#include "ui_aboutdialog.h"
|
#include "ui_aboutdialog.h"
|
||||||
|
|
||||||
#include "clientmodel.h"
|
#include "clientmodel.h"
|
||||||
|
#include "clientversion.h"
|
||||||
// Copyright year (2009-this)
|
|
||||||
// Todo: update this when changing our copyright comments in the source
|
|
||||||
const int ABOUTDIALOG_COPYRIGHT_YEAR = 2013;
|
|
||||||
|
|
||||||
AboutDialog::AboutDialog(QWidget *parent) :
|
AboutDialog::AboutDialog(QWidget *parent) :
|
||||||
QDialog(parent),
|
QDialog(parent),
|
||||||
@ -14,7 +11,7 @@ AboutDialog::AboutDialog(QWidget *parent) :
|
|||||||
ui->setupUi(this);
|
ui->setupUi(this);
|
||||||
|
|
||||||
// Set current copyright year
|
// Set current copyright year
|
||||||
ui->copyrightLabel->setText(tr("Copyright") + QString(" © ") + tr("2009-%1 The Bitcoin developers").arg(ABOUTDIALOG_COPYRIGHT_YEAR));
|
ui->copyrightLabel->setText(tr("Copyright") + QString(" © ") + tr("2009-%1 The Bitcoin developers").arg(COPYRIGHT_YEAR));
|
||||||
}
|
}
|
||||||
|
|
||||||
void AboutDialog::setModel(ClientModel *model)
|
void AboutDialog::setModel(ClientModel *model)
|
||||||
|
@ -7,6 +7,7 @@ IDI_ICON1 ICON DISCARDABLE "icons/bitcoin.ico"
|
|||||||
#define VER_PRODUCTVERSION_STR STRINGIZE(CLIENT_VERSION_MAJOR) "." STRINGIZE(CLIENT_VERSION_MINOR) "." STRINGIZE(CLIENT_VERSION_REVISION) "." STRINGIZE(CLIENT_VERSION_BUILD)
|
#define VER_PRODUCTVERSION_STR STRINGIZE(CLIENT_VERSION_MAJOR) "." STRINGIZE(CLIENT_VERSION_MINOR) "." STRINGIZE(CLIENT_VERSION_REVISION) "." STRINGIZE(CLIENT_VERSION_BUILD)
|
||||||
#define VER_FILEVERSION VER_PRODUCTVERSION
|
#define VER_FILEVERSION VER_PRODUCTVERSION
|
||||||
#define VER_FILEVERSION_STR VER_PRODUCTVERSION_STR
|
#define VER_FILEVERSION_STR VER_PRODUCTVERSION_STR
|
||||||
|
#define COPYRIGHT_STR "2009-" STRINGIZE(COPYRIGHT_YEAR) " The Bitcoin developers"
|
||||||
|
|
||||||
VS_VERSION_INFO VERSIONINFO
|
VS_VERSION_INFO VERSIONINFO
|
||||||
FILEVERSION VER_FILEVERSION
|
FILEVERSION VER_FILEVERSION
|
||||||
@ -22,7 +23,7 @@ BEGIN
|
|||||||
VALUE "FileDescription", "Bitcoin-Qt (OSS GUI client for Bitcoin)"
|
VALUE "FileDescription", "Bitcoin-Qt (OSS GUI client for Bitcoin)"
|
||||||
VALUE "FileVersion", VER_FILEVERSION_STR
|
VALUE "FileVersion", VER_FILEVERSION_STR
|
||||||
VALUE "InternalName", "bitcoin-qt"
|
VALUE "InternalName", "bitcoin-qt"
|
||||||
VALUE "LegalCopyright", "2009-2013 The Bitcoin developers"
|
VALUE "LegalCopyright", COPYRIGHT_STR
|
||||||
VALUE "LegalTrademarks1", "Distributed under the MIT/X11 software license, see the accompanying file COPYING or http://www.opensource.org/licenses/mit-license.php."
|
VALUE "LegalTrademarks1", "Distributed under the MIT/X11 software license, see the accompanying file COPYING or http://www.opensource.org/licenses/mit-license.php."
|
||||||
VALUE "OriginalFilename", "bitcoin-qt.exe"
|
VALUE "OriginalFilename", "bitcoin-qt.exe"
|
||||||
VALUE "ProductName", "Bitcoin-Qt"
|
VALUE "ProductName", "Bitcoin-Qt"
|
||||||
|
Loading…
Reference in New Issue
Block a user