2022-04-17 15:37:04 +03:00
|
|
|
#include "aboutdlg.h"
|
|
|
|
|
#include "ui_aboutdlg.h"
|
|
|
|
|
#include "config.h"
|
|
|
|
|
|
|
|
|
|
AboutDlg::AboutDlg(QWidget *parent) :
|
|
|
|
|
QDialog(parent),
|
|
|
|
|
ui(new Ui::AboutDlg)
|
|
|
|
|
{
|
|
|
|
|
ui->setupUi(this);
|
2022-05-07 21:59:47 +03:00
|
|
|
|
2022-04-18 10:27:23 +03:00
|
|
|
ui->mAppIcon->setPixmap(QPixmap(":/assets/images/coffee_cup/icon_96x96"));
|
2022-04-17 15:37:04 +03:00
|
|
|
auto version_text = QString("Version %1.%2.%3")
|
|
|
|
|
.arg(QBREAK_VERSION_MAJOR)
|
|
|
|
|
.arg(QBREAK_VERSION_MINOR)
|
|
|
|
|
.arg(QBREAK_VERSION_SUFFIX);
|
2022-09-20 11:19:03 +03:00
|
|
|
#if defined(DEBUG)
|
|
|
|
|
version_text += ". Debug build.";
|
|
|
|
|
#endif
|
2022-04-17 15:37:04 +03:00
|
|
|
ui->mAppVersionLabel->setText(version_text);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
AboutDlg::~AboutDlg()
|
|
|
|
|
{
|
|
|
|
|
delete ui;
|
|
|
|
|
}
|