RedPanda-CPP/RedPandaIDE/widgets/aboutdialog.cpp

33 lines
903 B
C++
Raw Normal View History

2021-10-03 23:12:20 +08:00
#include "aboutdialog.h"
#include "ui_aboutdialog.h"
#include "../systemconsts.h"
#include "../version.h"
2021-10-03 23:12:20 +08:00
AboutDialog::AboutDialog(QWidget *parent) :
QDialog(parent),
ui(new Ui::AboutDialog)
{
ui->setupUi(this);
ui->lblTitle->setText(ui->lblTitle->text() + tr("Version: ") + DEVCPP_VERSION);
#ifdef __GNUC__
ui->lblContent->setText(ui->lblContent->text()
.arg(qVersion())
.arg(QString("GCC %1.%2")
.arg(__GNUC__)
.arg(__GNUC_MINOR__)
,__DATE__, __TIME__));
#else
2021-10-03 23:12:20 +08:00
ui->lblContent->setText(ui->lblContent->text()
.arg(qVersion())
.arg("Non-GCC Compiler"
,__DATE__, __TIME__));
#endif
2021-10-03 23:12:20 +08:00
}
AboutDialog::~AboutDialog()
{
delete ui;
}