mirror of
https://git.h3cjp.net/H3cJP/citra.git
synced 2024-11-24 17:43:07 +00:00
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.
This commit is contained in:
parent
d7f5e55f8e
commit
17badbc442
|
@ -48,7 +48,7 @@ private:
|
||||||
|
|
||||||
MicroProfileDialog::MicroProfileDialog(QWidget* parent) : QWidget(parent, Qt::Dialog) {
|
MicroProfileDialog::MicroProfileDialog(QWidget* parent) : QWidget(parent, Qt::Dialog) {
|
||||||
setObjectName(QStringLiteral("MicroProfile"));
|
setObjectName(QStringLiteral("MicroProfile"));
|
||||||
setWindowTitle(tr("MicroProfile"));
|
setWindowTitle(tr("&MicroProfile"));
|
||||||
resize(1000, 600);
|
resize(1000, 600);
|
||||||
// Remove the "?" button from the titlebar and enable the maximize button
|
// Remove the "?" button from the titlebar and enable the maximize button
|
||||||
setWindowFlags((windowFlags() & ~Qt::WindowContextHelpButtonHint) |
|
setWindowFlags((windowFlags() & ~Qt::WindowContextHelpButtonHint) |
|
||||||
|
|
|
@ -457,7 +457,7 @@ void WaitTreeModel::InitItems() {
|
||||||
thread_items = WaitTreeItem::MakeThreadItemList();
|
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"));
|
setObjectName(QStringLiteral("WaitTreeWidget"));
|
||||||
view = new QTreeView(this);
|
view = new QTreeView(this);
|
||||||
view->setHeaderHidden(true);
|
view->setHeaderHidden(true);
|
||||||
|
|
|
@ -677,7 +677,7 @@ void GMainWindow::InitializeRecentFileMenuActions() {
|
||||||
}
|
}
|
||||||
ui.menu_recent_files->addSeparator();
|
ui.menu_recent_files->addSeparator();
|
||||||
QAction* action_clear_recent_files = new QAction(this);
|
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] {
|
connect(action_clear_recent_files, &QAction::triggered, this, [this] {
|
||||||
UISettings::values.recent_files.clear();
|
UISettings::values.recent_files.clear();
|
||||||
UpdateRecentFiles();
|
UpdateRecentFiles();
|
||||||
|
@ -2117,7 +2117,7 @@ void GMainWindow::OnStartGame() {
|
||||||
connect(emu_thread.get(), &EmuThread::ErrorThrown, this, &GMainWindow::OnCoreError);
|
connect(emu_thread.get(), &EmuThread::ErrorThrown, this, &GMainWindow::OnCoreError);
|
||||||
|
|
||||||
ui.action_Start->setEnabled(false);
|
ui.action_Start->setEnabled(false);
|
||||||
ui.action_Start->setText(tr("Continue"));
|
ui.action_Start->setText(tr("&Continue"));
|
||||||
|
|
||||||
ui.action_Pause->setEnabled(true);
|
ui.action_Pause->setEnabled(true);
|
||||||
ui.action_Stop->setEnabled(true);
|
ui.action_Stop->setEnabled(true);
|
||||||
|
@ -2970,7 +2970,7 @@ void GMainWindow::OnLanguageChanged(const QString& locale) {
|
||||||
UpdateWindowTitle();
|
UpdateWindowTitle();
|
||||||
|
|
||||||
if (emulation_running)
|
if (emulation_running)
|
||||||
ui.action_Start->setText(tr("Continue"));
|
ui.action_Start->setText(tr("&Continue"));
|
||||||
}
|
}
|
||||||
|
|
||||||
void GMainWindow::SetDiscordEnabled([[maybe_unused]] bool state) {
|
void GMainWindow::SetDiscordEnabled([[maybe_unused]] bool state) {
|
||||||
|
|
|
@ -25,16 +25,7 @@
|
||||||
</property>
|
</property>
|
||||||
<widget class="QWidget" name="centralwidget">
|
<widget class="QWidget" name="centralwidget">
|
||||||
<layout class="QHBoxLayout" name="horizontalLayout">
|
<layout class="QHBoxLayout" name="horizontalLayout">
|
||||||
<property name="leftMargin">
|
<property name="margin">
|
||||||
<number>0</number>
|
|
||||||
</property>
|
|
||||||
<property name="topMargin">
|
|
||||||
<number>0</number>
|
|
||||||
</property>
|
|
||||||
<property name="rightMargin">
|
|
||||||
<number>0</number>
|
|
||||||
</property>
|
|
||||||
<property name="bottomMargin">
|
|
||||||
<number>0</number>
|
<number>0</number>
|
||||||
</property>
|
</property>
|
||||||
</layout>
|
</layout>
|
||||||
|
@ -45,7 +36,7 @@
|
||||||
<x>0</x>
|
<x>0</x>
|
||||||
<y>0</y>
|
<y>0</y>
|
||||||
<width>1280</width>
|
<width>1280</width>
|
||||||
<height>21</height>
|
<height>26</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
<widget class="QMenu" name="menu_File">
|
<widget class="QMenu" name="menu_File">
|
||||||
|
@ -54,7 +45,7 @@
|
||||||
</property>
|
</property>
|
||||||
<widget class="QMenu" name="menu_recent_files">
|
<widget class="QMenu" name="menu_recent_files">
|
||||||
<property name="title">
|
<property name="title">
|
||||||
<string>Recent Files</string>
|
<string>&Recent Files</string>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
<addaction name="action_Install_File_NAND"/>
|
<addaction name="action_Install_File_NAND"/>
|
||||||
|
@ -89,7 +80,7 @@
|
||||||
</property>
|
</property>
|
||||||
<widget class="QMenu" name="menu_View_Debugging">
|
<widget class="QMenu" name="menu_View_Debugging">
|
||||||
<property name="title">
|
<property name="title">
|
||||||
<string>Debugging</string>
|
<string>&Debugging</string>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
<addaction name="action_Fullscreen"/>
|
<addaction name="action_Fullscreen"/>
|
||||||
|
@ -104,7 +95,7 @@
|
||||||
</widget>
|
</widget>
|
||||||
<widget class="QMenu" name="menu_Tools">
|
<widget class="QMenu" name="menu_Tools">
|
||||||
<property name="title">
|
<property name="title">
|
||||||
<string>Tools</string>
|
<string>&Tools</string>
|
||||||
</property>
|
</property>
|
||||||
<addaction name="action_Rederive"/>
|
<addaction name="action_Rederive"/>
|
||||||
<addaction name="separator"/>
|
<addaction name="separator"/>
|
||||||
|
@ -132,17 +123,17 @@
|
||||||
<bool>true</bool>
|
<bool>true</bool>
|
||||||
</property>
|
</property>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Install Files to NAND...</string>
|
<string>&Install Files to NAND...</string>
|
||||||
</property>
|
</property>
|
||||||
</action>
|
</action>
|
||||||
<action name="action_Load_File">
|
<action name="action_Load_File">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Load File...</string>
|
<string>L&oad File...</string>
|
||||||
</property>
|
</property>
|
||||||
</action>
|
</action>
|
||||||
<action name="action_Load_Folder">
|
<action name="action_Load_Folder">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Load Folder...</string>
|
<string>Load &Folder...</string>
|
||||||
</property>
|
</property>
|
||||||
</action>
|
</action>
|
||||||
<action name="action_Exit">
|
<action name="action_Exit">
|
||||||
|
@ -176,12 +167,12 @@
|
||||||
</action>
|
</action>
|
||||||
<action name="action_Rederive">
|
<action name="action_Rederive">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Reinitialize keys...</string>
|
<string>&Reinitialize keys...</string>
|
||||||
</property>
|
</property>
|
||||||
</action>
|
</action>
|
||||||
<action name="action_About">
|
<action name="action_About">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>About yuzu</string>
|
<string>&About yuzu</string>
|
||||||
</property>
|
</property>
|
||||||
</action>
|
</action>
|
||||||
<action name="action_Single_Window_Mode">
|
<action name="action_Single_Window_Mode">
|
||||||
|
@ -189,12 +180,12 @@
|
||||||
<bool>true</bool>
|
<bool>true</bool>
|
||||||
</property>
|
</property>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Single Window Mode</string>
|
<string>Single &Window Mode</string>
|
||||||
</property>
|
</property>
|
||||||
</action>
|
</action>
|
||||||
<action name="action_Configure">
|
<action name="action_Configure">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Configure...</string>
|
<string>Con&figure...</string>
|
||||||
</property>
|
</property>
|
||||||
</action>
|
</action>
|
||||||
<action name="action_Display_Dock_Widget_Headers">
|
<action name="action_Display_Dock_Widget_Headers">
|
||||||
|
@ -202,7 +193,7 @@
|
||||||
<bool>true</bool>
|
<bool>true</bool>
|
||||||
</property>
|
</property>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Display Dock Widget Headers</string>
|
<string>Display D&ock Widget Headers</string>
|
||||||
</property>
|
</property>
|
||||||
</action>
|
</action>
|
||||||
<action name="action_Show_Filter_Bar">
|
<action name="action_Show_Filter_Bar">
|
||||||
|
@ -210,7 +201,7 @@
|
||||||
<bool>true</bool>
|
<bool>true</bool>
|
||||||
</property>
|
</property>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Show Filter Bar</string>
|
<string>Show &Filter Bar</string>
|
||||||
</property>
|
</property>
|
||||||
</action>
|
</action>
|
||||||
<action name="action_Show_Status_Bar">
|
<action name="action_Show_Status_Bar">
|
||||||
|
@ -218,16 +209,25 @@
|
||||||
<bool>true</bool>
|
<bool>true</bool>
|
||||||
</property>
|
</property>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
|
<string>Show &Status Bar</string>
|
||||||
|
</property>
|
||||||
|
<property name="iconText">
|
||||||
<string>Show Status Bar</string>
|
<string>Show Status Bar</string>
|
||||||
</property>
|
</property>
|
||||||
</action>
|
</action>
|
||||||
<action name="action_Reset_Window_Size_720">
|
<action name="action_Reset_Window_Size_720">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
|
<string>Reset Window Size to &720p</string>
|
||||||
|
</property>
|
||||||
|
<property name="iconText">
|
||||||
<string>Reset Window Size to 720p</string>
|
<string>Reset Window Size to 720p</string>
|
||||||
</property>
|
</property>
|
||||||
</action>
|
</action>
|
||||||
<action name="action_Reset_Window_Size_1080">
|
<action name="action_Reset_Window_Size_1080">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
|
<string>Reset Window Size to &1080p</string>
|
||||||
|
</property>
|
||||||
|
<property name="iconText">
|
||||||
<string>Reset Window Size to 1080p</string>
|
<string>Reset Window Size to 1080p</string>
|
||||||
</property>
|
</property>
|
||||||
</action>
|
</action>
|
||||||
|
@ -236,7 +236,7 @@
|
||||||
<bool>true</bool>
|
<bool>true</bool>
|
||||||
</property>
|
</property>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Fullscreen</string>
|
<string>F&ullscreen</string>
|
||||||
</property>
|
</property>
|
||||||
</action>
|
</action>
|
||||||
<action name="action_Restart">
|
<action name="action_Restart">
|
||||||
|
@ -244,7 +244,7 @@
|
||||||
<bool>false</bool>
|
<bool>false</bool>
|
||||||
</property>
|
</property>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Restart</string>
|
<string>&Restart</string>
|
||||||
</property>
|
</property>
|
||||||
</action>
|
</action>
|
||||||
<action name="action_Load_Amiibo">
|
<action name="action_Load_Amiibo">
|
||||||
|
@ -252,7 +252,7 @@
|
||||||
<bool>false</bool>
|
<bool>false</bool>
|
||||||
</property>
|
</property>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Load Amiibo...</string>
|
<string>Load &Amiibo...</string>
|
||||||
</property>
|
</property>
|
||||||
</action>
|
</action>
|
||||||
<action name="action_Report_Compatibility">
|
<action name="action_Report_Compatibility">
|
||||||
|
@ -260,7 +260,7 @@
|
||||||
<bool>false</bool>
|
<bool>false</bool>
|
||||||
</property>
|
</property>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Report Compatibility</string>
|
<string>&Report Compatibility</string>
|
||||||
</property>
|
</property>
|
||||||
<property name="visible">
|
<property name="visible">
|
||||||
<bool>false</bool>
|
<bool>false</bool>
|
||||||
|
@ -268,22 +268,22 @@
|
||||||
</action>
|
</action>
|
||||||
<action name="action_Open_Mods_Page">
|
<action name="action_Open_Mods_Page">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Open Mods Page</string>
|
<string>Open &Mods Page</string>
|
||||||
</property>
|
</property>
|
||||||
</action>
|
</action>
|
||||||
<action name="action_Open_Quickstart_Guide">
|
<action name="action_Open_Quickstart_Guide">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Open Quickstart Guide</string>
|
<string>Open &Quickstart Guide</string>
|
||||||
</property>
|
</property>
|
||||||
</action>
|
</action>
|
||||||
<action name="action_Open_FAQ">
|
<action name="action_Open_FAQ">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>FAQ</string>
|
<string>&FAQ</string>
|
||||||
</property>
|
</property>
|
||||||
</action>
|
</action>
|
||||||
<action name="action_Open_yuzu_Folder">
|
<action name="action_Open_yuzu_Folder">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Open yuzu Folder</string>
|
<string>Open &yuzu Folder</string>
|
||||||
</property>
|
</property>
|
||||||
</action>
|
</action>
|
||||||
<action name="action_Capture_Screenshot">
|
<action name="action_Capture_Screenshot">
|
||||||
|
@ -291,7 +291,7 @@
|
||||||
<bool>false</bool>
|
<bool>false</bool>
|
||||||
</property>
|
</property>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Capture Screenshot</string>
|
<string>&Capture Screenshot</string>
|
||||||
</property>
|
</property>
|
||||||
</action>
|
</action>
|
||||||
<action name="action_Configure_Current_Game">
|
<action name="action_Configure_Current_Game">
|
||||||
|
@ -299,7 +299,7 @@
|
||||||
<bool>false</bool>
|
<bool>false</bool>
|
||||||
</property>
|
</property>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Configure Current Game...</string>
|
<string>Configure C&urrent Game...</string>
|
||||||
</property>
|
</property>
|
||||||
</action>
|
</action>
|
||||||
</widget>
|
</widget>
|
||||||
|
|
Loading…
Reference in a new issue