2014-09-14 13:03:07 -06:00
|
|
|
// Copyright 2014 Dolphin Emulator Project
|
2015-05-17 17:08:10 -06:00
|
|
|
// Licensed under GPLv2+
|
2014-09-14 13:03:07 -06:00
|
|
|
// Refer to the license.txt file included.
|
|
|
|
|
2015-09-06 00:39:35 -06:00
|
|
|
#include <memory>
|
2014-09-14 13:03:07 -06:00
|
|
|
#include <QDesktopServices>
|
|
|
|
#include <QUrl>
|
|
|
|
|
|
|
|
#include "ui_AboutDialog.h"
|
2014-10-25 07:21:05 -06:00
|
|
|
|
2014-09-14 18:44:07 -06:00
|
|
|
#include "Common/Common.h"
|
2014-09-14 13:03:07 -06:00
|
|
|
|
2014-10-25 07:21:05 -06:00
|
|
|
#include "DolphinQt/AboutDialog.h"
|
2015-09-10 21:02:47 -06:00
|
|
|
#include "DolphinQt/Utils/Resources.h"
|
2014-10-25 07:21:05 -06:00
|
|
|
#include "DolphinQt/Utils/Utils.h"
|
2014-09-14 13:03:07 -06:00
|
|
|
|
2014-10-25 07:21:05 -06:00
|
|
|
DAboutDialog::DAboutDialog(QWidget* parent_widget)
|
|
|
|
: QDialog(parent_widget)
|
2014-09-14 13:03:07 -06:00
|
|
|
{
|
2014-10-25 07:21:05 -06:00
|
|
|
setWindowModality(Qt::WindowModal);
|
|
|
|
setAttribute(Qt::WA_DeleteOnClose);
|
2015-09-10 21:02:47 -06:00
|
|
|
setWindowFlags(windowFlags() & ~Qt::WindowContextHelpButtonHint);
|
2014-10-25 07:21:05 -06:00
|
|
|
|
|
|
|
m_ui = std::make_unique<Ui::DAboutDialog>();
|
|
|
|
m_ui->setupUi(this);
|
2015-09-10 21:02:47 -06:00
|
|
|
m_ui->lblGitRev->setText(SC(scm_desc_str));
|
2015-11-13 17:52:41 -07:00
|
|
|
m_ui->lblGitInfo->setText(m_ui->lblGitInfo->text().arg(SC(scm_branch_str), SC(scm_rev_git_str)));
|
2015-09-10 21:02:47 -06:00
|
|
|
m_ui->lblFinePrint->setText(m_ui->lblFinePrint->text().arg(SL("2015")));
|
|
|
|
m_ui->lblLicenseAuthorsSupport->setText(m_ui->lblLicenseAuthorsSupport->text()
|
|
|
|
.arg(SL("https://github.com/dolphin-emu/dolphin/blob/master/license.txt"))
|
|
|
|
.arg(SL("https://github.com/dolphin-emu/dolphin/graphs/contributors"))
|
|
|
|
.arg(SL("https://forums.dolphin-emu.org/")));
|
|
|
|
m_ui->lblLogo->setPixmap(Resources::GetPixmap(Resources::DOLPHIN_LOGO_LARGE));
|
2014-09-14 13:03:07 -06:00
|
|
|
}
|
|
|
|
|
2014-10-25 07:21:05 -06:00
|
|
|
DAboutDialog::~DAboutDialog()
|
2014-09-14 13:03:07 -06:00
|
|
|
{
|
|
|
|
}
|