mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 06:09:50 -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
44
Source/Core/DolphinQt/MainWindow.cpp
Normal file
44
Source/Core/DolphinQt/MainWindow.cpp
Normal file
@ -0,0 +1,44 @@
|
||||
// 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"
|
||||
|
||||
DMainWindow::DMainWindow(QWidget *p) :
|
||||
QMainWindow(p),
|
||||
ui(new Ui::DMainWindow)
|
||||
{
|
||||
ui->setupUi(this);
|
||||
}
|
||||
|
||||
DMainWindow::~DMainWindow()
|
||||
{
|
||||
delete ui;
|
||||
}
|
||||
|
||||
void DMainWindow::on_actWebsite_triggered()
|
||||
{
|
||||
QDesktopServices::openUrl(QUrl("https://dolphin-emu.org/"));
|
||||
}
|
||||
|
||||
void DMainWindow::on_actOnlineDocs_triggered()
|
||||
{
|
||||
QDesktopServices::openUrl(QUrl("https://dolphin-emu.org/docs/guides/"));
|
||||
}
|
||||
|
||||
void DMainWindow::on_actGitHub_triggered()
|
||||
{
|
||||
QDesktopServices::openUrl(QUrl("https://github.com/dolphin-emu/dolphin/"));
|
||||
}
|
||||
|
||||
void DMainWindow::on_actAbout_triggered()
|
||||
{
|
||||
DAboutDialog dlg;
|
||||
dlg.exec();
|
||||
}
|
Reference in New Issue
Block a user