mirror of
https://github.com/RPCS3/rpcs3.git
synced 2026-05-12 16:19:44 -06:00
Merge 4f5d1fbfff into fb1c1eeaef
This commit is contained in:
commit
751eb3a780
@ -12,6 +12,27 @@ game_list::game_list() : QTableWidget(), game_list_base()
|
||||
{
|
||||
Q_EMIT IconReady(game, item);
|
||||
};
|
||||
|
||||
// Activate video/music preview on selection change (keyboard/pad navigation)
|
||||
connect(this, &QTableWidget::currentCellChanged, this, [this](int row, int /*column*/, int prev_row, int /*prev_column*/)
|
||||
{
|
||||
if (row == prev_row)
|
||||
return;
|
||||
|
||||
if (m_last_hover_item)
|
||||
{
|
||||
m_last_hover_item->set_active(false);
|
||||
}
|
||||
|
||||
movie_item* new_item = static_cast<movie_item*>(item(row, static_cast<int>(gui::game_list_columns::icon)));
|
||||
|
||||
if (new_item)
|
||||
{
|
||||
new_item->set_active(true);
|
||||
}
|
||||
|
||||
m_last_hover_item = new_item;
|
||||
});
|
||||
}
|
||||
|
||||
void game_list::sync_header_actions(std::map<int, QAction*>& actions, std::function<bool(int)> get_visibility)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user