QT: Add reset button

This commit is contained in:
Simon McFarlane
2015-05-02 16:18:02 -07:00
parent 5988750fe4
commit 6c6fe8d724
3 changed files with 15 additions and 0 deletions

View File

@ -14,6 +14,7 @@
#include "Core/BootManager.h"
#include "Core/ConfigManager.h"
#include "Core/HW/ProcessorInterface.h"
#include "DolphinQt/AboutDialog.h"
#include "DolphinQt/MainWindow.h"
@ -70,6 +71,7 @@ DMainWindow::DMainWindow(QWidget* parent_widget)
connect(m_game_tracker, SIGNAL(StartGame()), this, SLOT(OnPlay()));
connect(m_ui->actionStop, SIGNAL(triggered()), this, SLOT(OnStop()));
connect(m_ui->actionStop_mnu, SIGNAL(triggered()), this, SLOT(OnStop()));
connect(m_ui->actionReset, SIGNAL(triggered()), this, SLOT(OnReset()));
connect(m_ui->actionWebsite, SIGNAL(triggered()), this, SLOT(OnOpenWebsite()));
connect(m_ui->actionOnlineDocs, SIGNAL(triggered()), this, SLOT(OnOpenDocs()));
@ -270,6 +272,12 @@ bool DMainWindow::Stop()
return true;
}
void DMainWindow::OnReset()
{
// TODO: Movie needs to be reset here
ProcessorInterface::ResetButton_Tap();
}
void DMainWindow::OnGameListStyleChanged()
{
if (m_ui->actionListView->isChecked())