aboutdialog.cpp 470 Bytes
Newer Older
Wladimir J. van der Laan's avatar
Wladimir J. van der Laan committed
1
#include "aboutdialog.h"
Wladimir J. van der Laan's avatar
Wladimir J. van der Laan committed
2
#include "ui_aboutdialog.h"
3
#include "clientmodel.h"
4

5 6
#include "version.h"

7
AboutDialog::AboutDialog(QWidget *parent) :
Wladimir J. van der Laan's avatar
Wladimir J. van der Laan committed
8 9
    QDialog(parent),
    ui(new Ui::AboutDialog)
10
{
Wladimir J. van der Laan's avatar
Wladimir J. van der Laan committed
11
    ui->setupUi(this);
12 13 14 15
}

void AboutDialog::setModel(ClientModel *model)
{
16 17 18 19
    if(model)
    {
        ui->versionLabel->setText(model->formatFullVersion());
    }
Wladimir J. van der Laan's avatar
Wladimir J. van der Laan committed
20 21 22 23 24 25 26 27 28 29
}

AboutDialog::~AboutDialog()
{
    delete ui;
}

void AboutDialog::on_buttonBox_accepted()
{
    close();
30
}