2014-05-18 11:52:39 -04:00
|
|
|
#include "gui/aboutdialog.h"
|
|
|
|
#include "ui_aboutdialog.h"
|
|
|
|
|
2018-01-11 18:57:05 -05:00
|
|
|
AboutDialog::AboutDialog(const QString& apiHost, int apiPort, QWidget* parent) :
|
2014-05-18 11:52:39 -04:00
|
|
|
QDialog(parent),
|
|
|
|
ui(new Ui::AboutDialog)
|
|
|
|
{
|
|
|
|
ui->setupUi(this);
|
2018-01-02 06:38:28 -05:00
|
|
|
ui->version->setText(QString("Version %1 - Copyright (C) 2015-2018 Edouard Griffiths, F4EXB.").arg(qApp->applicationVersion()));
|
2018-01-06 21:36:47 -05:00
|
|
|
ui->build->setText(QString("Build info: Qt %1 %2 bits").arg(QT_VERSION_STR).arg(QT_POINTER_SIZE*8));
|
2018-01-11 18:57:05 -05:00
|
|
|
ui->restApiUrl->setText(QString("REST API base URL: http://%1:%2/sdrangel").arg(apiHost).arg(apiPort));
|
2014-05-18 11:52:39 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
AboutDialog::~AboutDialog()
|
|
|
|
{
|
|
|
|
delete ui;
|
|
|
|
}
|