mirror of
https://github.com/GOSTSec/gostcoin
synced 2025-01-15 17:19:57 +00:00
40 lines
1.3 KiB
C++
40 lines
1.3 KiB
C++
#include "aboutdialog.h"
|
|
#include "ui_aboutdialog.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 = 2017;
|
|
|
|
AboutDialog::AboutDialog(QWidget *parent) :
|
|
QDialog(parent),
|
|
ui(new Ui::AboutDialog)
|
|
{
|
|
ui->setupUi(this);
|
|
|
|
// Set current copyright year
|
|
ui->copyrightLabel->setText(tr("Copyright") + QString(" © 2009-%1 ").arg(COPYRIGHT_YEAR) + tr("The Bitcoin developers") + QString("<br>") + tr("Copyright") + QString(" © ") + tr("2011-%1 The Litecoin developers").arg(ABOUTDIALOG_COPYRIGHT_YEAR) + QString("<br>") + tr("Copyright") + QString(" © ") + tr("2013-%1 The Anoncoin developers").arg(ABOUTDIALOG_COPYRIGHT_YEAR) +
|
|
QString("<br>") + tr("Copyright") + QString(" © ") + tr("2015-%1 The i2pd developers").arg(ABOUTDIALOG_COPYRIGHT_YEAR) +
|
|
QString("<br>") + tr("Copyright") + QString(" © ") + tr("%1 The Gostcoin developers").arg(ABOUTDIALOG_COPYRIGHT_YEAR));
|
|
}
|
|
|
|
void AboutDialog::setModel(ClientModel *model)
|
|
{
|
|
if(model)
|
|
{
|
|
ui->versionLabel->setText(model->formatFullVersion());
|
|
}
|
|
}
|
|
|
|
AboutDialog::~AboutDialog()
|
|
{
|
|
delete ui;
|
|
}
|
|
|
|
void AboutDialog::on_buttonBox_accepted()
|
|
{
|
|
close();
|
|
}
|