Feathercoin  0.5.0
P2P Digital Currency
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros
aboutdialog.cpp
Go to the documentation of this file.
1 #include "aboutdialog.h"
2 #include "ui_aboutdialog.h"
3 
4 #include "clientmodel.h"
5 #include "clientversion.h"
6 
7 // Copyright year (2009-this)
8 // Todo: update this when changing our copyright comments in the source
9 const int ABOUTDIALOG_COPYRIGHT_YEAR = 2013;
10 
11 AboutDialog::AboutDialog(QWidget *parent) :
12  QDialog(parent),
13  ui(new Ui::AboutDialog)
14 {
15  ui->setupUi(this);
16 
17  // Set current copyright year
18  ui->copyrightLabel->setText(tr("Copyright") + QString(" &copy; 2009-%1 ").arg(COPYRIGHT_YEAR) + tr("The Bitcoin developers") + QString("<br>") + tr("Copyright") + QString(" &copy; ") + tr("2011-%1 The Litecoin developers").arg(ABOUTDIALOG_COPYRIGHT_YEAR));
19 }
20 
22 {
23  if(model)
24  {
25  ui->versionLabel->setText(model->formatFullVersion());
26  }
27 }
28 
30 {
31  delete ui;
32 }
33 
35 {
36  close();
37 }
Definition: aboutdialog.h:6
void on_buttonBox_accepted()
Definition: aboutdialog.cpp:34
AboutDialog(QWidget *parent=0)
Definition: aboutdialog.cpp:11
Ui::AboutDialog * ui
Definition: aboutdialog.h:23
"About" dialog box
Definition: aboutdialog.h:12
#define COPYRIGHT_YEAR
Definition: clientversion.h:19
Model for Bitcoin network client.
Definition: clientmodel.h:24
const int ABOUTDIALOG_COPYRIGHT_YEAR
Definition: aboutdialog.cpp:9
QString formatFullVersion() const
void * arg
Definition: env_posix.cc:716
void setModel(ClientModel *model)
Definition: aboutdialog.cpp:21