| 1 |
#include "FormAbout.h" |
| 2 |
#include "ui_FormAbout.h" |
| 3 |
|
| 4 |
#include <QUrl> |
| 5 |
#include <QDesktopServices> |
| 6 |
|
| 7 |
#include "config_puzzle.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/puzzle.png")); |
| 17 |
|
| 18 |
ui->label_2->setText(tr("Version:")+" "+QString(PUZZLE_VERSION)); |
| 19 |
ui->label_3->setText(tr("Date build:")+" "+QString(PUZZLE_DATEBUILD)); |
| 20 |
ui->label_4->setText("© 2020 DanSoft. "+tr("All rights reserved.")); |
| 21 |
ui->label_5->setPixmap(QPixmap(QString(PATH_USERDATA)+"/images/puzzle.png")); |
| 22 |
|
| 23 |
ui->label_7->setText(tr("Designers:")+" Rouslan Fialkovski ([email protected])"); |
| 24 |
|
| 25 |
connect(ui->pushButton,SIGNAL(clicked(bool)),this,SLOT(close())); |
| 26 |
connect(ui->pushButton_2,SIGNAL(clicked(bool)),this,SLOT(visit_web_site())); |
| 27 |
connect(ui->pushButton_3,SIGNAL(clicked(bool)),this,SLOT(visit_bitbucket())); |
| 28 |
} |
| 29 |
|
| 30 |
FormAbout::~FormAbout() |
| 31 |
{ |
| 32 |
delete ui; |
| 33 |
} |
| 34 |
|
| 35 |
void FormAbout::visit_web_site(){ |
| 36 |
QDesktopServices::openUrl(QUrl("https://www.dansoft.ru/")); |
| 37 |
} |
| 38 |
|
| 39 |
void FormAbout::visit_bitbucket(){ |
| 40 |
QDesktopServices::openUrl(QUrl("https://bitbucket.org/admsasha/puzzle")); |
| 41 |
} |