qt: added about box

This commit is contained in:
user 2020-12-17 22:17:05 +08:00
parent 06a7e181cd
commit 082c4f1104
9 changed files with 353 additions and 30 deletions
qt/i2pd_qt

View file

@ -0,0 +1,23 @@
#include "AboutDialog.h"
#include "ui_AboutDialog.h"
#include <QDebug>
#include "version.h"
#include "BuildDateTimeQt.h"
AboutDialog::AboutDialog(QWidget *parent) :
QDialog(parent),
ui(new Ui::AboutDialog)
{
qDebug() << "AboutDialog::AboutDialog()" << endl;
ui->setupUi(this);
ui->i2pdVersionLabel->setText(I2PD_VERSION);
ui->i2pVersionLabel->setText(I2P_VERSION);
ui->buildDateTimeLabel->setText(BUILD_DATE_TIME_QT);
ui->vcsCommitInfoLabel->setText(VCS_COMMIT_INFO);
}
AboutDialog::~AboutDialog()
{
qDebug() << "AboutDialog::~AboutDialog()" << endl;
delete ui;
}