From 80762583c29af1ae256ef507f2a21740cf2d9f48 Mon Sep 17 00:00:00 2001 From: Yuri Kunde Schlesner Date: Sat, 18 Feb 2017 02:30:29 -0800 Subject: Qt: Move some connections from .ui file to code --- src/citra_qt/main.cpp | 3 +++ src/citra_qt/main.ui | 38 -------------------------------------- 2 files changed, 3 insertions(+), 38 deletions(-) (limited to 'src') diff --git a/src/citra_qt/main.cpp b/src/citra_qt/main.cpp index 05709fcb0..513da8001 100644 --- a/src/citra_qt/main.cpp +++ b/src/citra_qt/main.cpp @@ -248,6 +248,7 @@ void GMainWindow::ConnectMenuEvents() { &GMainWindow::OnMenuLoadSymbolMap); connect(ui.action_Select_Game_List_Root, &QAction::triggered, this, &GMainWindow::OnMenuSelectGameListRoot); + connect(ui.action_Exit, &QAction::triggered, this, &QMainWindow::close); // Emulation connect(ui.action_Start, &QAction::triggered, this, &GMainWindow::OnStartGame); @@ -258,6 +259,8 @@ void GMainWindow::ConnectMenuEvents() { // View connect(ui.action_Single_Window_Mode, &QAction::triggered, this, &GMainWindow::ToggleWindowMode); + connect(ui.action_Display_Dock_Widget_Headers, &QAction::triggered, this, + &GMainWindow::OnDisplayTitleBars); } void GMainWindow::OnDisplayTitleBars(bool show) { diff --git a/src/citra_qt/main.ui b/src/citra_qt/main.ui index fba493a84..4a95cda9a 100644 --- a/src/citra_qt/main.ui +++ b/src/citra_qt/main.ui @@ -182,42 +182,4 @@ - - - action_Exit - triggered() - MainWindow - close() - - - -1 - -1 - - - 367 - 314 - - - - - action_Display_Dock_Widget_Headers - triggered(bool) - MainWindow - OnDisplayTitleBars(bool) - - - -1 - -1 - - - 540 - 364 - - - - - - OnConfigure() - OnDisplayTitleBars(bool) - -- cgit v1.2.3