2011-05-12 12:49:42 +00:00
|
|
|
#include "aboutdialog.h"
|
2011-05-12 15:55:24 +00:00
|
|
|
#include "ui_aboutdialog.h"
|
2013-02-01 06:28:32 +00:00
|
|
|
|
2011-07-01 15:06:36 +00:00
|
|
|
#include "clientmodel.h"
|
2013-04-10 14:53:36 +00:00
|
|
|
#include "clientversion.h"
|
2012-04-07 00:06:53 +00:00
|
|
|
|
2011-05-08 20:23:31 +00:00
|
|
|
AboutDialog::AboutDialog(QWidget *parent) :
|
2011-05-12 15:55:24 +00:00
|
|
|
QDialog(parent),
|
|
|
|
ui(new Ui::AboutDialog)
|
2011-05-08 20:23:31 +00:00
|
|
|
{
|
2011-05-12 15:55:24 +00:00
|
|
|
ui->setupUi(this);
|
2013-02-01 06:28:32 +00:00
|
|
|
|
|
|
|
// Set current copyright year
|
2013-04-14 17:42:15 +00:00
|
|
|
ui->copyrightLabel->setText(tr("Copyright") + QString(" © 2009-%1 ").arg(COPYRIGHT_YEAR) + tr("The Bitcoin developers"));
|
2011-07-01 15:06:36 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void AboutDialog::setModel(ClientModel *model)
|
|
|
|
{
|
2011-11-08 20:18:36 +00:00
|
|
|
if(model)
|
|
|
|
{
|
|
|
|
ui->versionLabel->setText(model->formatFullVersion());
|
|
|
|
}
|
2011-05-12 15:55:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
AboutDialog::~AboutDialog()
|
|
|
|
{
|
|
|
|
delete ui;
|
|
|
|
}
|
|
|
|
|
|
|
|
void AboutDialog::on_buttonBox_accepted()
|
|
|
|
{
|
|
|
|
close();
|
2011-05-08 20:23:31 +00:00
|
|
|
}
|