DolphinQt: Rewrite About dialog to match the new DolphinWX one.

This commit is contained in:
waddlesplash
2015-09-10 23:02:47 -04:00
parent 3014feedc8
commit 0c1671973c
4 changed files with 134 additions and 57 deletions

View File

@ -11,6 +11,7 @@
#include "Common/Common.h"
#include "DolphinQt/AboutDialog.h"
#include "DolphinQt/Utils/Resources.h"
#include "DolphinQt/Utils/Utils.h"
DAboutDialog::DAboutDialog(QWidget* parent_widget)
@ -18,12 +19,19 @@ DAboutDialog::DAboutDialog(QWidget* parent_widget)
{
setWindowModality(Qt::WindowModal);
setAttribute(Qt::WA_DeleteOnClose);
setWindowFlags(windowFlags() & ~Qt::WindowContextHelpButtonHint);
m_ui = std::make_unique<Ui::DAboutDialog>();
m_ui->setupUi(this);
m_ui->label->setText(m_ui->label->text().arg(SC(scm_desc_str),
SL("2014"), SC(scm_branch_str), SC(scm_rev_git_str),
SL(__DATE__), SL(__TIME__)));
m_ui->lblGitRev->setText(SC(scm_desc_str));
m_ui->lblGitInfo->setText(m_ui->lblGitInfo->text().arg(SC(scm_branch_str), SC(scm_rev_git_str),
SL(__DATE__), SL(__TIME__)));
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));
}
DAboutDialog::~DAboutDialog()