mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-16 11:48:36 +12:00
Qt/shortcuts: add handler id to log messages
This commit is contained in:
parent
2661b6a71c
commit
4ba4268282
2 changed files with 20 additions and 5 deletions
|
@ -3,9 +3,9 @@
|
|||
using namespace gui::shortcuts;
|
||||
|
||||
template <>
|
||||
void fmt_class_string<gui::shortcuts::shortcut>::format(std::string& out, u64 arg)
|
||||
void fmt_class_string<shortcut>::format(std::string& out, u64 arg)
|
||||
{
|
||||
format_enum(out, arg, [](gui::shortcuts::shortcut value)
|
||||
format_enum(out, arg, [](shortcut value)
|
||||
{
|
||||
switch (value)
|
||||
{
|
||||
|
@ -35,6 +35,21 @@ void fmt_class_string<gui::shortcuts::shortcut>::format(std::string& out, u64 ar
|
|||
});
|
||||
}
|
||||
|
||||
template <>
|
||||
void fmt_class_string<shortcut_handler_id>::format(std::string& out, u64 arg)
|
||||
{
|
||||
format_enum(out, arg, [](gui::shortcuts::shortcut_handler_id value)
|
||||
{
|
||||
switch (value)
|
||||
{
|
||||
case shortcut_handler_id::main_window: return "main_window";
|
||||
case shortcut_handler_id::game_window: return "game_window";
|
||||
}
|
||||
|
||||
return unknown;
|
||||
});
|
||||
}
|
||||
|
||||
shortcut_settings::shortcut_settings()
|
||||
: shortcut_map({
|
||||
{ shortcut::mw_start, shortcut_info{ "main_window_start", tr("Start"), "Ctrl+E", shortcut_handler_id::main_window } },
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue