Skip to content

Commit

Permalink
Qt: Add path to recent game/savestate tooltip
Browse files Browse the repository at this point in the history
  • Loading branch information
Megamouse committed Jan 24, 2025
1 parent 18ff43f commit 5d81831
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions rpcs3/rpcs3qt/main_window.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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]);
}

Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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]);
}

Expand Down

0 comments on commit 5d81831

Please sign in to comment.