mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-01-28 12:07:32 -03:00
99ae01234d
- this ensures our new splash screen and this will share a translatable string an remove the need for an additional translation
33 lines
642 B
C++
33 lines
642 B
C++
#include "aboutdialog.h"
|
|
#include "ui_aboutdialog.h"
|
|
|
|
#include "clientmodel.h"
|
|
#include "clientversion.h"
|
|
|
|
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"));
|
|
}
|
|
|
|
void AboutDialog::setModel(ClientModel *model)
|
|
{
|
|
if(model)
|
|
{
|
|
ui->versionLabel->setText(model->formatFullVersion());
|
|
}
|
|
}
|
|
|
|
AboutDialog::~AboutDialog()
|
|
{
|
|
delete ui;
|
|
}
|
|
|
|
void AboutDialog::on_buttonBox_accepted()
|
|
{
|
|
close();
|
|
}
|