2013-06-24 14:36:38 +03:00
|
|
|
#include "about.h"
|
2013-10-15 19:54:15 -07:00
|
|
|
#include "ssrf-version.h"
|
2014-02-08 08:50:39 +01:00
|
|
|
#include <QDesktopServices>
|
|
|
|
#include <QUrl>
|
2013-06-24 14:36:38 +03:00
|
|
|
|
2014-02-12 06:06:13 -08:00
|
|
|
SubsurfaceAbout::SubsurfaceAbout(QWidget *parent, Qt::WindowFlags f) : QDialog(parent, f)
|
2013-06-24 14:36:38 +03:00
|
|
|
{
|
2013-10-03 11:54:25 -07:00
|
|
|
ui.setupUi(this);
|
2014-02-08 08:50:39 +01:00
|
|
|
|
|
|
|
setWindowModality(Qt::ApplicationModal);
|
|
|
|
|
2013-10-03 11:54:25 -07:00
|
|
|
ui.aboutLabel->setText(tr("<span style='font-size: 18pt; font-weight: bold;'>" \
|
2013-11-30 14:57:10 +02:00
|
|
|
"Subsurface %1 </span><br><br>" \
|
2013-10-15 20:29:31 -07:00
|
|
|
"Multi-platform divelog software<br>" \
|
2014-02-08 08:19:37 -08:00
|
|
|
"<span style='font-size: 8pt'>" \
|
|
|
|
"Linus Torvalds, Dirk Hohndel, Tomaz Canabrava, and others, 2011-2014" \
|
|
|
|
"</span>").arg(VERSION_STRING));
|
2013-06-24 14:36:38 +03:00
|
|
|
}
|
|
|
|
|
2014-02-08 08:50:39 +01:00
|
|
|
void SubsurfaceAbout::on_licenseButton_clicked()
|
2013-06-24 14:36:38 +03:00
|
|
|
{
|
|
|
|
QDesktopServices::openUrl(QUrl("http://www.gnu.org/licenses/gpl-2.0.txt"));
|
|
|
|
}
|
|
|
|
|
2014-02-08 08:50:39 +01:00
|
|
|
void SubsurfaceAbout::on_websiteButton_clicked()
|
2013-06-24 14:36:38 +03:00
|
|
|
{
|
|
|
|
QDesktopServices::openUrl(QUrl("http://subsurface.hohndel.org"));
|
|
|
|
}
|