mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2024-11-15 13:57:57 -07:00
44 lines
917 B
C++
44 lines
917 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 "MainWindow.h"
|
|
#include "ui_MainWindow.h"
|
|
#include "Common/StdMakeUnique.h"
|
|
|
|
DMainWindow::DMainWindow(QWidget* p)
|
|
: QMainWindow(p)
|
|
{
|
|
ui = std::make_unique<Ui::DMainWindow>();
|
|
ui->setupUi(this);
|
|
}
|
|
|
|
DMainWindow::~DMainWindow()
|
|
{
|
|
}
|
|
|
|
void DMainWindow::on_actWebsite_triggered()
|
|
{
|
|
QDesktopServices::openUrl(QUrl(QStringLiteral("https://dolphin-emu.org/")));
|
|
}
|
|
|
|
void DMainWindow::on_actOnlineDocs_triggered()
|
|
{
|
|
QDesktopServices::openUrl(QUrl(QStringLiteral("https://dolphin-emu.org/docs/guides/")));
|
|
}
|
|
|
|
void DMainWindow::on_actGitHub_triggered()
|
|
{
|
|
QDesktopServices::openUrl(QUrl(QStringLiteral("https://github.com/dolphin-emu/dolphin/")));
|
|
}
|
|
|
|
void DMainWindow::on_actAbout_triggered()
|
|
{
|
|
DAboutDialog dlg;
|
|
dlg.exec();
|
|
}
|