dogecoin/src/qt/aboutdialog.cpp

37 lines
775 B
C++
Raw Normal View History

2011-05-12 14:49:42 +02:00
#include "aboutdialog.h"
2011-05-12 17:55:24 +02:00
#include "ui_aboutdialog.h"
2011-07-01 17:06:36 +02:00
#include "clientmodel.h"
2011-06-05 11:14:23 +02:00
// Copyright year (2009-this)
// Todo: update this when changing our copyright comments in the source
const int ABOUTDIALOG_COPYRIGHT_YEAR = 2013;
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);
// Set current copyright year
ui->copyrightLabel->setText(tr("Copyright") + QString(" © ") + tr("2009-%1 The Bitcoin developers").arg(ABOUTDIALOG_COPYRIGHT_YEAR));
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
}