Debian Codegraph @

FormAbout.cpp

raw symbols SCIP
1 #include "FormAbout.h"
2 #include "ui_FormAbout.h"
3
4 #include <QUrl>
5 #include <QDesktopServices>
6
7 #include "config_qnetstatview.h"
8
9 FormAbout::FormAbout(QWidget *parent) :
10 QDialog(parent),
11 ui(new Ui::FormAbout)
12 {
13 ui->setupUi(this);
14 this->setFixedSize(this->width(),this->height());
15 this->setWindowTitle(tr("About"));
16 this->setWindowIcon(QIcon(QString(PATH_USERDATA)+"/images/qnetstatview.png"));
17
18 ui->label_2->setText(tr("Version:")+" "+QString(QNETSTATVIEW_VERSION));
19 ui->label_3->setText(tr("Date build:")+" "+QString(QNETSTATVIEW_DATEBUILD));
20 ui->label_4->setText("© 2013-2020 DanSoft. "+tr("All rights reserved."));
21 ui->label_5->setPixmap(QPixmap(QString(PATH_USERDATA)+"/images/qnetstatview.png"));
22
23 connect(ui->pushButton,SIGNAL(clicked(bool)),this,SLOT(close()));
24 connect(ui->pushButton_2,SIGNAL(clicked(bool)),this,SLOT(visit_web_site()));
25 connect(ui->pushButton_3,SIGNAL(clicked(bool)),this,SLOT(visit_bitbucket()));
26 }
27
28 FormAbout::~FormAbout()
29 {
30 delete ui;
31 }
32
33 void FormAbout::visit_web_site(){
34 QDesktopServices::openUrl(QUrl("https://www.dansoft.ru/"));
35 }
36
37 void FormAbout::visit_bitbucket(){
38 QDesktopServices::openUrl(QUrl("https://bitbucket.org/admsasha/qnetstatview"));
39 }