-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathaboutdialog.cpp
executable file
·29 lines (25 loc) · 1.15 KB
/
aboutdialog.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#include "aboutdialog.h"
#include "ui_aboutdialog.h"
#include <QDate>
AboutDialog::AboutDialog(QWidget *parent) :
QDialog(parent),
ui(new Ui::Dialog)
{
ui->setupUi(this);
this->setWindowFlags(Qt::CustomizeWindowHint | Qt::WindowTitleHint);
adjustSize();
//setFixedSize(size());
this->setModal(false);
ui->label_contact->setTextFormat(Qt::RichText);
ui->label_contact->setText(QString(tr("Contact Us: "))+"<style> a {text-decoration: none} </style> <a href='mailto:[email protected]'>[email protected]</a>");
ui->label_contact->setOpenExternalLinks(true);
ui->label_web->setOpenExternalLinks(true);
ui->label_web->setText(QString(tr("Web:"))+QString::fromLocal8Bit("<style> a {text-decoration: none} </style> <a href = https://omniedge.io> https://omniedge.io</a>"));
static const QDate buildDate = QLocale( QLocale::English ).toDate( QString(__DATE__).replace(" ", " 0"), "MMM dd yyyy");
ui->label_release->setText(tr("Release: ")+buildDate.toString("yyyy-MM-dd"));
ui->label_version->setText(tr("Version: ")+ QString(APPVERSION));
}
AboutDialog::~AboutDialog()
{
delete ui;
}