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());
|
Snapshot_SetFilename(path.absoluteFilePath().toStdString().c_str());
|
||||||
ui->actionLoad_state->trigger();
|
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_actionNext_video_mode_triggered();
|
||||||
|
|
||||||
|
void on_actionQuit_triggered();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
||||||
// helper class to pause the emulator and restart at the end of the block
|
// helper class to pause the emulator and restart at the end of the block
|
||||||
|
|
|
@ -42,7 +42,7 @@
|
||||||
<x>0</x>
|
<x>0</x>
|
||||||
<y>0</y>
|
<y>0</y>
|
||||||
<width>1032</width>
|
<width>1032</width>
|
||||||
<height>24</height>
|
<height>22</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
<widget class="QMenu" name="menuSystem">
|
<widget class="QMenu" name="menuSystem">
|
||||||
|
@ -83,6 +83,8 @@
|
||||||
<addaction name="actionLoad_state_from"/>
|
<addaction name="actionLoad_state_from"/>
|
||||||
<addaction name="actionSave_state"/>
|
<addaction name="actionSave_state"/>
|
||||||
<addaction name="actionSwap_disks"/>
|
<addaction name="actionSwap_disks"/>
|
||||||
|
<addaction name="separator"/>
|
||||||
|
<addaction name="actionQuit"/>
|
||||||
</widget>
|
</widget>
|
||||||
<addaction name="menuFile"/>
|
<addaction name="menuFile"/>
|
||||||
<addaction name="menuSystem"/>
|
<addaction name="menuSystem"/>
|
||||||
|
@ -231,6 +233,14 @@
|
||||||
<string>F9</string>
|
<string>F9</string>
|
||||||
</property>
|
</property>
|
||||||
</action>
|
</action>
|
||||||
|
<action name="actionQuit">
|
||||||
|
<property name="text">
|
||||||
|
<string>Quit</string>
|
||||||
|
</property>
|
||||||
|
<property name="shortcut">
|
||||||
|
<string>Ctrl+Q</string>
|
||||||
|
</property>
|
||||||
|
</action>
|
||||||
</widget>
|
</widget>
|
||||||
<layoutdefault spacing="6" margin="11"/>
|
<layoutdefault spacing="6" margin="11"/>
|
||||||
<resources/>
|
<resources/>
|
||||||
|
|
Loading…
Add table
Reference in a new issue