Add Quit on the Qt app.
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
This commit is contained in:
parent
bb8269052a
commit
65effc121d
3 changed files with 18 additions and 1 deletions
|
@ -595,3 +595,8 @@ void QApple::loadStateFile(const QString & filename)
|
|||
Snapshot_SetFilename(path.absoluteFilePath().toStdString().c_str());
|
||||
ui->actionLoad_state->trigger();
|
||||
}
|
||||
|
||||
void QApple::on_actionQuit_triggered()
|
||||
{
|
||||
this->close();
|
||||
}
|
||||
|
|
|
@ -79,6 +79,8 @@ private slots:
|
|||
|
||||
void on_actionNext_video_mode_triggered();
|
||||
|
||||
void on_actionQuit_triggered();
|
||||
|
||||
private:
|
||||
|
||||
// helper class to pause the emulator and restart at the end of the block
|
||||
|
|
|
@ -42,7 +42,7 @@
|
|||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>1032</width>
|
||||
<height>24</height>
|
||||
<height>22</height>
|
||||
</rect>
|
||||
</property>
|
||||
<widget class="QMenu" name="menuSystem">
|
||||
|
@ -83,6 +83,8 @@
|
|||
<addaction name="actionLoad_state_from"/>
|
||||
<addaction name="actionSave_state"/>
|
||||
<addaction name="actionSwap_disks"/>
|
||||
<addaction name="separator"/>
|
||||
<addaction name="actionQuit"/>
|
||||
</widget>
|
||||
<addaction name="menuFile"/>
|
||||
<addaction name="menuSystem"/>
|
||||
|
@ -231,6 +233,14 @@
|
|||
<string>F9</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionQuit">
|
||||
<property name="text">
|
||||
<string>Quit</string>
|
||||
</property>
|
||||
<property name="shortcut">
|
||||
<string>Ctrl+Q</string>
|
||||
</property>
|
||||
</action>
|
||||
</widget>
|
||||
<layoutdefault spacing="6" margin="11"/>
|
||||
<resources/>
|
||||
|
|
Loading…
Add table
Reference in a new issue