qbreak/app/aboutdlg.cpp

26 lines
585 B
C++
Raw Permalink Normal View History

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
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);
#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;
}