mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-22 22:00:39 -06:00
DolphinQt: initial commit.
This adds the beginning of the DolphinQt user interface. It doesn't do anything useful yet and only builds via CMake.
This commit is contained in:

committed by
Shawn Hoffman

parent
847f78e4cc
commit
16c6a19190
37
Source/Core/DolphinQt/AboutDialog.cpp
Normal file
37
Source/Core/DolphinQt/AboutDialog.cpp
Normal file
@ -0,0 +1,37 @@
|
||||
// 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));
|
||||
}
|
Reference in New Issue
Block a user