-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathabout.cpp
35 lines (30 loc) · 827 Bytes
/
about.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#include "about.h"
#include "ui_about.h"
#include <QMessageBox>
About::About(QWidget *parent) :
QDialog(parent),
ui(new Ui::About)
{
ui->setupUi(this);
QString aVersion = "Version: ";
aVersion.append(APP_VERSION);
aVersion.append(" (build ");
aVersion.append(__DATE__);
aVersion.append(" ");
aVersion.append(__TIME__);
aVersion.append(")");
ui->_versionLabel->setText(aVersion);
ui->_versionLabel->adjustSize();
ui->_titleLabel->setText(QString("Volume Control"));
ui->_titleLabel->adjustSize();
connect(ui->_qtButton, SIGNAL(clicked(bool)), this, SLOT(showAboutQt()));
connect(ui->_closeButton, SIGNAL(clicked(bool)), this, SLOT(close()));
}
About::~About()
{
delete ui;
}
void About::showAboutQt()
{
QMessageBox::aboutQt(this, "Volume Control");
}