2014-09-14 19:03:07 +00:00
|
|
|
// Copyright 2014 Dolphin Emulator Project
|
|
|
|
// Licensed under GPLv2
|
|
|
|
// Refer to the license.txt file included.
|
|
|
|
|
|
|
|
#include <QDesktopServices>
|
|
|
|
#include <QUrl>
|
|
|
|
|
|
|
|
#include "AboutDialog.h"
|
|
|
|
#include "ui_AboutDialog.h"
|
2014-09-15 00:44:07 +00:00
|
|
|
#include "Common/Common.h"
|
|
|
|
#include "Common/StdMakeUnique.h"
|
2014-09-14 19:03:07 +00:00
|
|
|
|
2014-09-15 00:44:07 +00:00
|
|
|
DAboutDialog::DAboutDialog(QWidget* p)
|
|
|
|
: QDialog(p)
|
2014-09-14 19:03:07 +00:00
|
|
|
{
|
2014-09-15 00:44:07 +00:00
|
|
|
ui = std::make_unique<Ui::DAboutDialog>();
|
2014-09-14 19:03:07 +00:00
|
|
|
ui->setupUi(this);
|
2014-09-15 00:44:07 +00:00
|
|
|
ui->label->setText(ui->label->text().arg(QLatin1String(scm_desc_str),
|
|
|
|
QStringLiteral("2014"),
|
|
|
|
QLatin1String(scm_branch_str),
|
|
|
|
QLatin1String(scm_rev_git_str),
|
|
|
|
QStringLiteral(__DATE__),
|
|
|
|
QStringLiteral(__TIME__)));
|
2014-09-14 19:03:07 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
DAboutDialog::~DAboutDialog()
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
void DAboutDialog::on_label_linkActivated(const QString &link)
|
|
|
|
{
|
|
|
|
QDesktopServices::openUrl(QUrl(link));
|
|
|
|
}
|