mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-01 22:10:54 +01:00
16c6a19190
This adds the beginning of the DolphinQt user interface. It doesn't do anything useful yet and only builds via CMake.
38 lines
914 B
C++
38 lines
914 B
C++
// 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"
|
|
|
|
// TODO
|
|
#define scm_desc_str "unknown"
|
|
#define scm_branch_str "unknown"
|
|
#define scm_rev_git_str "0000000"
|
|
|
|
DAboutDialog::DAboutDialog(QWidget *p) :
|
|
QDialog(p),
|
|
ui(new Ui::DAboutDialog)
|
|
{
|
|
ui->setupUi(this);
|
|
ui->label->setText(ui->label->text().arg(scm_desc_str,
|
|
"2014",
|
|
scm_branch_str,
|
|
scm_rev_git_str,
|
|
__DATE__,
|
|
__TIME__));
|
|
}
|
|
|
|
DAboutDialog::~DAboutDialog()
|
|
{
|
|
delete ui;
|
|
}
|
|
|
|
void DAboutDialog::on_label_linkActivated(const QString &link)
|
|
{
|
|
QDesktopServices::openUrl(QUrl(link));
|
|
}
|