bitcoin/src/qt/aboutdialog.cpp

31 lines
470 B
C++
Raw Normal View History

2011-05-12 08:49:42 -04:00
#include "aboutdialog.h"
2011-05-12 11:55:24 -04:00
#include "ui_aboutdialog.h"
2011-07-01 11:06:36 -04:00
#include "clientmodel.h"
2011-06-05 05:14:23 -04:00
#include "version.h"
2011-05-08 16:23:31 -04:00
AboutDialog::AboutDialog(QWidget *parent) :
2011-05-12 11:55:24 -04:00
QDialog(parent),
ui(new Ui::AboutDialog)
2011-05-08 16:23:31 -04:00
{
2011-05-12 11:55:24 -04:00
ui->setupUi(this);
2011-07-01 11:06:36 -04:00
}
void AboutDialog::setModel(ClientModel *model)
{
2011-11-08 17:18:36 -03:00
if(model)
{
ui->versionLabel->setText(model->formatFullVersion());
}
2011-05-12 11:55:24 -04:00
}
AboutDialog::~AboutDialog()
{
delete ui;
}
void AboutDialog::on_buttonBox_accepted()
{
close();
2011-05-08 16:23:31 -04:00
}