-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathaboutdialog.cpp
More file actions
34 lines (29 loc) · 802 Bytes
/
aboutdialog.cpp
File metadata and controls
34 lines (29 loc) · 802 Bytes
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
#include "aboutdialog.h"
#include "ui_aboutdialog.h"
#include <QDesktopServices>
#include <QUrl>
extern int version_now;
extern QString title;
AboutDialog::AboutDialog(QWidget *parent) :
QDialog(parent),
ui(new Ui::AboutDialog)
{
ui->setupUi(this);
//QString aboutstr;
//aboutstr.sprintf(" ver%d.%01d.%01d",version_now%1000/100,version_now%100/10,version_now%10);
//aboutstr = title + aboutstr;
ui->label->setText(title);
}
AboutDialog::~AboutDialog()
{
this->close();
delete ui;
}
void AboutDialog::on_commandLinkButton_2_clicked()
{
QDesktopServices::openUrl(QUrl(QLatin1String("http://3gby.skysidestudio.com/")));
}
void AboutDialog::on_commandLinkButton_clicked()
{
QDesktopServices::openUrl(QUrl(QLatin1String("http://www.skysidestudio.com/")));
}