1
0
Fork 0

Qt: Move some connections from .ui file to code

This commit is contained in:
Yuri Kunde Schlesner 2017-02-18 02:30:29 -08:00
parent 5b96915c69
commit 80762583c2
2 changed files with 3 additions and 38 deletions

View File

@ -248,6 +248,7 @@ void GMainWindow::ConnectMenuEvents() {
&GMainWindow::OnMenuLoadSymbolMap); &GMainWindow::OnMenuLoadSymbolMap);
connect(ui.action_Select_Game_List_Root, &QAction::triggered, this, connect(ui.action_Select_Game_List_Root, &QAction::triggered, this,
&GMainWindow::OnMenuSelectGameListRoot); &GMainWindow::OnMenuSelectGameListRoot);
connect(ui.action_Exit, &QAction::triggered, this, &QMainWindow::close);
// Emulation // Emulation
connect(ui.action_Start, &QAction::triggered, this, &GMainWindow::OnStartGame); connect(ui.action_Start, &QAction::triggered, this, &GMainWindow::OnStartGame);
@ -258,6 +259,8 @@ void GMainWindow::ConnectMenuEvents() {
// View // View
connect(ui.action_Single_Window_Mode, &QAction::triggered, this, connect(ui.action_Single_Window_Mode, &QAction::triggered, this,
&GMainWindow::ToggleWindowMode); &GMainWindow::ToggleWindowMode);
connect(ui.action_Display_Dock_Widget_Headers, &QAction::triggered, this,
&GMainWindow::OnDisplayTitleBars);
} }
void GMainWindow::OnDisplayTitleBars(bool show) { void GMainWindow::OnDisplayTitleBars(bool show) {

View File

@ -182,42 +182,4 @@
</action> </action>
</widget> </widget>
<resources/> <resources/>
<connections>
<connection>
<sender>action_Exit</sender>
<signal>triggered()</signal>
<receiver>MainWindow</receiver>
<slot>close()</slot>
<hints>
<hint type="sourcelabel">
<x>-1</x>
<y>-1</y>
</hint>
<hint type="destinationlabel">
<x>367</x>
<y>314</y>
</hint>
</hints>
</connection>
<connection>
<sender>action_Display_Dock_Widget_Headers</sender>
<signal>triggered(bool)</signal>
<receiver>MainWindow</receiver>
<slot>OnDisplayTitleBars(bool)</slot>
<hints>
<hint type="sourcelabel">
<x>-1</x>
<y>-1</y>
</hint>
<hint type="destinationlabel">
<x>540</x>
<y>364</y>
</hint>
</hints>
</connection>
</connections>
<slots>
<slot>OnConfigure()</slot>
<slot>OnDisplayTitleBars(bool)</slot>
</slots>
</ui> </ui>