Merge pull request #2258 from Diapolo/Qt_copyright_about
Bitcoin-Qt: better copyright year handling in AboutDialog
This commit is contained in:
commit
9acaa73820
|
@ -1,14 +1,20 @@
|
||||||
#include "aboutdialog.h"
|
#include "aboutdialog.h"
|
||||||
#include "ui_aboutdialog.h"
|
#include "ui_aboutdialog.h"
|
||||||
|
|
||||||
#include "clientmodel.h"
|
#include "clientmodel.h"
|
||||||
|
|
||||||
#include "version.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),
|
||||||
ui(new Ui::AboutDialog)
|
ui(new Ui::AboutDialog)
|
||||||
{
|
{
|
||||||
ui->setupUi(this);
|
ui->setupUi(this);
|
||||||
|
|
||||||
|
// Set current copyright year
|
||||||
|
ui->copyrightLabel->setText(tr("Copyright") + QString(" © ") + tr("2009-%1 The Bitcoin developers").arg(ABOUTDIALOG_COPYRIGHT_YEAR));
|
||||||
}
|
}
|
||||||
|
|
||||||
void AboutDialog::setModel(ClientModel *model)
|
void AboutDialog::setModel(ClientModel *model)
|
||||||
|
|
|
@ -18,6 +18,7 @@ public:
|
||||||
~AboutDialog();
|
~AboutDialog();
|
||||||
|
|
||||||
void setModel(ClientModel *model);
|
void setModel(ClientModel *model);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
Ui::AboutDialog *ui;
|
Ui::AboutDialog *ui;
|
||||||
|
|
||||||
|
|
|
@ -91,7 +91,10 @@
|
||||||
<cursorShape>IBeamCursor</cursorShape>
|
<cursorShape>IBeamCursor</cursorShape>
|
||||||
</property>
|
</property>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Copyright © 2009-2012 The Bitcoin developers</string>
|
<string notr="true">Copyright &copy; 2009-YYYY The Bitcoin developers</string>
|
||||||
|
</property>
|
||||||
|
<property name="textFormat">
|
||||||
|
<enum>Qt::RichText</enum>
|
||||||
</property>
|
</property>
|
||||||
<property name="textInteractionFlags">
|
<property name="textInteractionFlags">
|
||||||
<set>Qt::LinksAccessibleByMouse|Qt::TextSelectableByKeyboard|Qt::TextSelectableByMouse</set>
|
<set>Qt::LinksAccessibleByMouse|Qt::TextSelectableByKeyboard|Qt::TextSelectableByMouse</set>
|
||||||
|
|
Loading…
Reference in New Issue