2013-11-04 16:20:43 +01:00
|
|
|
// Copyright (c) 2011-2013 The Bitcoin developers
|
|
|
|
// Distributed under the MIT/X11 software license, see the accompanying
|
|
|
|
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
|
|
|
|
|
2011-05-12 14:49:42 +02:00
|
|
|
#include "aboutdialog.h"
|
2011-05-12 17:55:24 +02:00
|
|
|
#include "ui_aboutdialog.h"
|
2013-02-01 07:28:32 +01:00
|
|
|
|
2011-07-01 17:06:36 +02:00
|
|
|
#include "clientmodel.h"
|
2013-04-13 07:13:08 +02:00
|
|
|
|
2013-04-10 16:53:36 +02:00
|
|
|
#include "clientversion.h"
|
2012-04-07 02:06:53 +02:00
|
|
|
|
2011-05-08 22:23:31 +02:00
|
|
|
AboutDialog::AboutDialog(QWidget *parent) :
|
2011-05-12 17:55:24 +02:00
|
|
|
QDialog(parent),
|
|
|
|
ui(new Ui::AboutDialog)
|
2011-05-08 22:23:31 +02:00
|
|
|
{
|
2011-05-12 17:55:24 +02:00
|
|
|
ui->setupUi(this);
|
2013-02-01 07:28:32 +01:00
|
|
|
|
|
|
|
// Set current copyright year
|
2013-04-14 19:42:15 +02:00
|
|
|
ui->copyrightLabel->setText(tr("Copyright") + QString(" © 2009-%1 ").arg(COPYRIGHT_YEAR) + tr("The Bitcoin developers"));
|
2011-07-01 17:06:36 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
void AboutDialog::setModel(ClientModel *model)
|
|
|
|
{
|
2011-11-08 21:18:36 +01:00
|
|
|
if(model)
|
|
|
|
{
|
|
|
|
ui->versionLabel->setText(model->formatFullVersion());
|
|
|
|
}
|
2011-05-12 17:55:24 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
AboutDialog::~AboutDialog()
|
|
|
|
{
|
|
|
|
delete ui;
|
|
|
|
}
|
|
|
|
|
|
|
|
void AboutDialog::on_buttonBox_accepted()
|
|
|
|
{
|
|
|
|
close();
|
2011-05-08 22:23:31 +02:00
|
|
|
}
|