2
* Copyright (C) 2013 ~ 2014 National University of Defense Technology(NUDT) & Kylin Ltd.
4
* This program is free software; you can redistribute it and/or modify
5
* it under the terms of the GNU General Public License as published by
6
* the Free Software Foundation; version 3.
8
* This program is distributed in the hope that it will be useful,
9
* but WITHOUT ANY WARRANTY; without even the implied warranty of
10
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11
* GNU General Public License for more details.
13
* You should have received a copy of the GNU General Public License
14
* along with this program. If not, see <http://www.gnu.org/licenses/>.
17
#include "QDesktopWidget"
19
#include "aboutdialog.h"
20
#include "ui_aboutdialog.h"
24
AboutDialog::AboutDialog(QWidget *parent) :
26
ui(new Ui::AboutDialog)
29
this->setWindowFlags(Qt::WindowStaysOnTopHint);
30
QDesktopWidget* desktop = QApplication::desktop();
31
move((desktop->width() - this->width())/2, (desktop->height() - this->height())/2);
32
ui->tabWidget->setCurrentIndex(0);
33
connect(ui->homeBtn, SIGNAL(linkActivated(QString)), this, SLOT(openUrl(QString)));
36
AboutDialog::~AboutDialog()
41
void AboutDialog::on_closeBtn_clicked()
47
void AboutDialog::openUrl(QString url)
49
QDesktopServices::openUrl(QUrl(url));