From b3e93c5273b19ccc0b1a84def7d3b76070cd8f71 Mon Sep 17 00:00:00 2001 From: spycrab Date: Sun, 16 Jul 2017 02:36:37 +0200 Subject: [PATCH] Qt: Overhaul menubar --- Source/Core/DolphinQt2/MenuBar.cpp | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/Source/Core/DolphinQt2/MenuBar.cpp b/Source/Core/DolphinQt2/MenuBar.cpp index b78e2857da..62ffe240ae 100644 --- a/Source/Core/DolphinQt2/MenuBar.cpp +++ b/Source/Core/DolphinQt2/MenuBar.cpp @@ -77,8 +77,10 @@ void MenuBar::EmulationStopped() void MenuBar::AddFileMenu() { QMenu* file_menu = addMenu(tr("&File")); - m_open_action = file_menu->addAction(tr("&Open..."), this, &MenuBar::Open); - m_exit_action = file_menu->addAction(tr("E&xit"), this, &MenuBar::Exit); + m_open_action = file_menu->addAction(tr("&Open..."), this, &MenuBar::Open, + QKeySequence(QStringLiteral("Ctrl+O"))); + m_exit_action = file_menu->addAction(tr("E&xit"), this, &MenuBar::Exit, + QKeySequence(QStringLiteral("Alt+F4"))); } void MenuBar::AddToolsMenu() @@ -113,7 +115,11 @@ void MenuBar::AddEmulationMenu() m_reset_action = emu_menu->addAction(tr("&Reset"), this, &MenuBar::Reset); m_fullscreen_action = emu_menu->addAction(tr("Toggle &Fullscreen"), this, &MenuBar::Fullscreen); m_frame_advance_action = emu_menu->addAction(tr("&Frame Advance"), this, &MenuBar::FrameAdvance); + m_screenshot_action = emu_menu->addAction(tr("Take Screenshot"), this, &MenuBar::Screenshot); + + emu_menu->addSeparator(); + AddStateLoadMenu(emu_menu); AddStateSaveMenu(emu_menu); AddStateSlotMenu(emu_menu);