From 6c4f3257b759d8b66f97e4955244d32c6b8866c4 Mon Sep 17 00:00:00 2001 From: zhupengfei Date: Mon, 18 Jun 2018 20:33:50 +0800 Subject: [PATCH] citra-qt: Add build date in about dialog --- src/citra_qt/aboutdialog.cpp | 5 +++-- src/citra_qt/aboutdialog.ui | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/citra_qt/aboutdialog.cpp b/src/citra_qt/aboutdialog.cpp index 06587341a5..d00f410137 100644 --- a/src/citra_qt/aboutdialog.cpp +++ b/src/citra_qt/aboutdialog.cpp @@ -12,8 +12,9 @@ AboutDialog::AboutDialog(QWidget* parent) ui(new Ui::AboutDialog) { ui->setupUi(this); ui->labelLogo->setPixmap(QIcon::fromTheme("citra").pixmap(200)); - ui->labelBuildInfo->setText(ui->labelBuildInfo->text().arg( - Common::g_build_name, Common::g_scm_branch, Common::g_scm_desc)); + ui->labelBuildInfo->setText( + ui->labelBuildInfo->text().arg(Common::g_build_name, Common::g_scm_branch, + Common::g_scm_desc, QString(Common::g_build_date).left(10))); } AboutDialog::~AboutDialog() { diff --git a/src/citra_qt/aboutdialog.ui b/src/citra_qt/aboutdialog.ui index 1c0bf08166..10bc377d48 100644 --- a/src/citra_qt/aboutdialog.ui +++ b/src/citra_qt/aboutdialog.ui @@ -70,7 +70,7 @@ - <html><head/><body><p>%1 | %2-%3</p></body></html> + <html><head/><body><p>%1 | %2-%3 (%4)</p></body></html>