From 17badbc4424564f7ad25451b595f8892915f677e Mon Sep 17 00:00:00 2001 From: lat9nq <22451773+lat9nq@users.noreply.github.com> Date: Tue, 22 Dec 2020 19:32:58 -0500 Subject: [PATCH] yuzu/main: Improve menubar access keys Adds a unique access key to each action within each menu. A few actions already had their own access key, so those were untouched. --- src/yuzu/debugger/profiler.cpp | 2 +- src/yuzu/debugger/wait_tree.cpp | 2 +- src/yuzu/main.cpp | 6 +-- src/yuzu/main.ui | 66 ++++++++++++++++----------------- 4 files changed, 38 insertions(+), 38 deletions(-) diff --git a/src/yuzu/debugger/profiler.cpp b/src/yuzu/debugger/profiler.cpp index 0e26f765b..efdc6aa50 100644 --- a/src/yuzu/debugger/profiler.cpp +++ b/src/yuzu/debugger/profiler.cpp @@ -48,7 +48,7 @@ private: MicroProfileDialog::MicroProfileDialog(QWidget* parent) : QWidget(parent, Qt::Dialog) { setObjectName(QStringLiteral("MicroProfile")); - setWindowTitle(tr("MicroProfile")); + setWindowTitle(tr("&MicroProfile")); resize(1000, 600); // Remove the "?" button from the titlebar and enable the maximize button setWindowFlags((windowFlags() & ~Qt::WindowContextHelpButtonHint) | diff --git a/src/yuzu/debugger/wait_tree.cpp b/src/yuzu/debugger/wait_tree.cpp index 546a2cd4d..0925c10b4 100644 --- a/src/yuzu/debugger/wait_tree.cpp +++ b/src/yuzu/debugger/wait_tree.cpp @@ -457,7 +457,7 @@ void WaitTreeModel::InitItems() { thread_items = WaitTreeItem::MakeThreadItemList(); } -WaitTreeWidget::WaitTreeWidget(QWidget* parent) : QDockWidget(tr("Wait Tree"), parent) { +WaitTreeWidget::WaitTreeWidget(QWidget* parent) : QDockWidget(tr("&Wait Tree"), parent) { setObjectName(QStringLiteral("WaitTreeWidget")); view = new QTreeView(this); view->setHeaderHidden(true); diff --git a/src/yuzu/main.cpp b/src/yuzu/main.cpp index 1b12fa735..9a0f9919b 100644 --- a/src/yuzu/main.cpp +++ b/src/yuzu/main.cpp @@ -677,7 +677,7 @@ void GMainWindow::InitializeRecentFileMenuActions() { } ui.menu_recent_files->addSeparator(); QAction* action_clear_recent_files = new QAction(this); - action_clear_recent_files->setText(tr("Clear Recent Files")); + action_clear_recent_files->setText(tr("&Clear Recent Files")); connect(action_clear_recent_files, &QAction::triggered, this, [this] { UISettings::values.recent_files.clear(); UpdateRecentFiles(); @@ -2117,7 +2117,7 @@ void GMainWindow::OnStartGame() { connect(emu_thread.get(), &EmuThread::ErrorThrown, this, &GMainWindow::OnCoreError); ui.action_Start->setEnabled(false); - ui.action_Start->setText(tr("Continue")); + ui.action_Start->setText(tr("&Continue")); ui.action_Pause->setEnabled(true); ui.action_Stop->setEnabled(true); @@ -2970,7 +2970,7 @@ void GMainWindow::OnLanguageChanged(const QString& locale) { UpdateWindowTitle(); if (emulation_running) - ui.action_Start->setText(tr("Continue")); + ui.action_Start->setText(tr("&Continue")); } void GMainWindow::SetDiscordEnabled([[maybe_unused]] bool state) { diff --git a/src/yuzu/main.ui b/src/yuzu/main.ui index e266a5c0a..e2ad5baf6 100644 --- a/src/yuzu/main.ui +++ b/src/yuzu/main.ui @@ -25,16 +25,7 @@ - - 0 - - - 0 - - - 0 - - + 0 @@ -45,7 +36,7 @@ 0 0 1280 - 21 + 26 @@ -54,7 +45,7 @@ - Recent Files + &Recent Files @@ -89,7 +80,7 @@ - Debugging + &Debugging @@ -104,7 +95,7 @@ - Tools + &Tools @@ -132,17 +123,17 @@ true - Install Files to NAND... + &Install Files to NAND... - Load File... + L&oad File... - Load Folder... + Load &Folder... @@ -176,12 +167,12 @@ - Reinitialize keys... + &Reinitialize keys... - About yuzu + &About yuzu @@ -189,12 +180,12 @@ true - Single Window Mode + Single &Window Mode - Configure... + Con&figure... @@ -202,7 +193,7 @@ true - Display Dock Widget Headers + Display D&ock Widget Headers @@ -210,7 +201,7 @@ true - Show Filter Bar + Show &Filter Bar @@ -218,16 +209,25 @@ true + Show &Status Bar + + Show Status Bar + Reset Window Size to &720p + + Reset Window Size to 720p + Reset Window Size to &1080p + + Reset Window Size to 1080p @@ -236,7 +236,7 @@ true - Fullscreen + F&ullscreen @@ -244,7 +244,7 @@ false - Restart + &Restart @@ -252,7 +252,7 @@ false - Load Amiibo... + Load &Amiibo... @@ -260,7 +260,7 @@ false - Report Compatibility + &Report Compatibility false @@ -268,22 +268,22 @@ - Open Mods Page + Open &Mods Page - Open Quickstart Guide + Open &Quickstart Guide - FAQ + &FAQ - Open yuzu Folder + Open &yuzu Folder @@ -291,7 +291,7 @@ false - Capture Screenshot + &Capture Screenshot @@ -299,7 +299,7 @@ false - Configure Current Game... + Configure C&urrent Game...