mirror of
https://github.com/citra-emu/citra.git
synced 2024-11-23 12:50:09 +00:00
a26b466ac8
* Forward declare ui and use unique_ptr * ConfigureEnhancements: use unique_ptr for ui * Use make_unique instead of new where applicable * Move some of the ui includes that already used unique_ptr * main.cpp: also make use of make_unique on Config * Address review comments
21 lines
825 B
C++
21 lines
825 B
C++
// Copyright 2017 Citra Emulator Project
|
|
// Licensed under GPLv2 or any later version
|
|
// Refer to the license.txt file included.
|
|
|
|
#include <QIcon>
|
|
#include "aboutdialog.h"
|
|
#include "common/scm_rev.h"
|
|
#include "ui_aboutdialog.h"
|
|
|
|
AboutDialog::AboutDialog(QWidget* parent)
|
|
: QDialog(parent, Qt::WindowTitleHint | Qt::WindowCloseButtonHint | Qt::WindowSystemMenuHint),
|
|
ui(std::make_unique<Ui::AboutDialog>()) {
|
|
ui->setupUi(this);
|
|
ui->labelLogo->setPixmap(QIcon::fromTheme(QStringLiteral("citra")).pixmap(200));
|
|
ui->labelBuildInfo->setText(ui->labelBuildInfo->text().arg(
|
|
QString::fromUtf8(Common::g_build_fullname), QString::fromUtf8(Common::g_scm_branch),
|
|
QString::fromUtf8(Common::g_scm_desc), QString::fromUtf8(Common::g_build_date).left(10)));
|
|
}
|
|
|
|
AboutDialog::~AboutDialog() = default;
|