-
Notifications
You must be signed in to change notification settings - Fork 17
Expand file tree
/
Copy pathchangelogform.cpp
More file actions
37 lines (36 loc) · 1.33 KB
/
Copy pathchangelogform.cpp
File metadata and controls
37 lines (36 loc) · 1.33 KB
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
30
31
32
33
34
35
36
37
/***********************************************************************************
**
** ChangelogForm.cpp
**
** Copyright (C) October 2017 Hotride
**
************************************************************************************
*/
//----------------------------------------------------------------------------------
#include "changelogform.h"
#include "ui_changelogform.h"
#include <QDesktopServices>
//----------------------------------------------------------------------------------
ChangelogForm::ChangelogForm(QWidget *parent)
: QMainWindow(parent), ui(new Ui::ChangelogForm)
{
ui->setupUi(this);
connect(this, SIGNAL(signal_ChangelogReceived(QString)), this, SLOT(slot_ChangelogReceived(QString)));
connect(ui->tb_Log, SIGNAL(anchorClicked(QUrl)), this, SLOT(slot_StartLink(QUrl)));
}
//----------------------------------------------------------------------------------
ChangelogForm::~ChangelogForm()
{
delete ui;
}
//----------------------------------------------------------------------------------
void ChangelogForm::slot_ChangelogReceived(QString str)
{
ui->tb_Log->setHtml(str);
}
//----------------------------------------------------------------------------------
void ChangelogForm::slot_StartLink(QUrl url)
{
QDesktopServices::openUrl(url);
}
//----------------------------------------------------------------------------------