2021-06-28 00:04:27 +08:00
|
|
|
#include "about.h"
|
2021-10-21 19:00:34 +08:00
|
|
|
|
|
|
|
#include "Util/app_common.h"
|
2021-06-28 00:04:27 +08:00
|
|
|
#include "ui_aboutdialog.h"
|
|
|
|
|
|
|
|
About About::instance;
|
|
|
|
|
|
|
|
AboutDialog::AboutDialog(QWidget *parent) :
|
|
|
|
QDialog(parent),
|
|
|
|
ui(new Ui::AboutDialog)
|
|
|
|
{
|
|
|
|
ui->setupUi(this);
|
|
|
|
setWindowTitle("About " + qlibrevnaApp->applicationName());
|
|
|
|
ui->appName->setText(qlibrevnaApp->applicationName());
|
|
|
|
ui->appVersion->setText(QString("Version: %1")
|
|
|
|
.arg(qlibrevnaApp->applicationVersion()));
|
|
|
|
ui->sourceCodeDescription->setText(QString("<a href='%1'>%1</a>")
|
|
|
|
.arg("https://github.com/jankae/LibreVNA"));
|
|
|
|
ui->sourceCodeDescription->setOpenExternalLinks(true);
|
|
|
|
ui->contributeDescription->setOpenExternalLinks(true);
|
|
|
|
ui->headerDescription->setOpenExternalLinks(true);
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
AboutDialog::~AboutDialog()
|
|
|
|
{
|
|
|
|
delete ui;
|
|
|
|
}
|
|
|
|
|
|
|
|
void About::about()
|
|
|
|
{
|
|
|
|
auto dialog = new AboutDialog();
|
|
|
|
dialog->exec();
|
|
|
|
}
|