From 27baab992a66c246a0fa022b1ff559805a91ddfb Mon Sep 17 00:00:00 2001 From: Megamouse Date: Fri, 24 Jan 2025 20:30:19 +0100 Subject: [PATCH] Qt: Add path to recent game/savestate tooltip --- rpcs3/rpcs3qt/main_window.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/rpcs3/rpcs3qt/main_window.cpp b/rpcs3/rpcs3qt/main_window.cpp index 77bcb7f148..f4769fd262 100644 --- a/rpcs3/rpcs3qt/main_window.cpp +++ b/rpcs3/rpcs3qt/main_window.cpp @@ -2243,7 +2243,7 @@ void main_window::BootRecentAction(const QAction* act, bool is_savestate) for (int i = 0; i < rgw.actions.count(); i++) { rgw.actions[i]->setShortcut(QString("%0+%1").arg(is_savestate ? "Alt" : "Ctrl").arg(i + 1)); - rgw.actions[i]->setToolTip(::at32(rgw.entries, i).second); + rgw.actions[i]->setToolTip(::at32(rgw.entries, i).second + "\n" + ::at32(rgw.entries, i).first); menu->addAction(rgw.actions[i]); } @@ -2288,7 +2288,7 @@ QAction* main_window::CreateRecentAction(const q_string_pair& entry, u32 sc_idx, // create new action QAction* act = new QAction(shown_name, this); act->setData(entry.first); - act->setToolTip(entry.second); + act->setToolTip(entry.second + "\n" + entry.first); act->setShortcut(QString("%0+%1").arg(is_savestate ? "Alt" : "Ctrl").arg(sc_idx)); // truncate if too long @@ -2361,7 +2361,7 @@ void main_window::AddRecentAction(const q_string_pair& entry, bool is_savestate) for (int i = 0; i < rgw.actions.count(); i++) { rgw.actions[i]->setShortcut(QString("%0+%1").arg(is_savestate ? "Alt" : "Ctrl").arg(i + 1)); - rgw.actions[i]->setToolTip(::at32(rgw.entries, i).second); + rgw.actions[i]->setToolTip(::at32(rgw.entries, i).second + "\n" + ::at32(rgw.entries, i).first); menu->addAction(rgw.actions[i]); }