QT: Add reset button
This commit is contained in:
parent
5988750fe4
commit
6c6fe8d724
|
@ -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())
|
||||
|
|
|
@ -47,6 +47,7 @@ private slots:
|
|||
void OnBrowse();
|
||||
void OnExit();
|
||||
void OnPlay();
|
||||
void OnReset();
|
||||
|
||||
// View menu
|
||||
void OnGameListStyleChanged();
|
||||
|
|
|
@ -51,6 +51,7 @@
|
|||
</property>
|
||||
<addaction name="actionPlay_mnu"/>
|
||||
<addaction name="actionStop_mnu"/>
|
||||
<addaction name="actionReset"/>
|
||||
</widget>
|
||||
<widget class="QMenu" name="mnuOptions">
|
||||
<property name="title">
|
||||
|
@ -225,6 +226,11 @@
|
|||
<string>Stop</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionReset">
|
||||
<property name="text">
|
||||
<string>Reset</string>
|
||||
</property>
|
||||
</action>
|
||||
</widget>
|
||||
<resources/>
|
||||
<connections/>
|
||||
|
|
Loading…
Reference in New Issue