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);
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) {