mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-12-10 05:38:49 +00:00
Improve keyboard navigation in game list (#1132)
* Improve keyboard navigation * don't start game in elf viewer mode or gridview mode with empty item selected * fix eventFilter return
This commit is contained in:
@@ -20,7 +20,9 @@ Q_SIGNALS:
|
||||
public Q_SLOTS:
|
||||
void SetGridBackgroundImage(int row, int column);
|
||||
void RefreshGridBackgroundImage();
|
||||
void PlayBackgroundMusic(QTableWidgetItem* item);
|
||||
void PlayBackgroundMusic(QString path);
|
||||
void onCurrentCellChanged(int currentRow, int currentColumn, int previousRow,
|
||||
int previousColumn);
|
||||
|
||||
private:
|
||||
QImage backgroundImage;
|
||||
@@ -28,10 +30,12 @@ private:
|
||||
GuiContextMenus m_gui_context_menus;
|
||||
std::shared_ptr<GameInfoClass> m_game_info;
|
||||
std::shared_ptr<QVector<GameInfo>> m_games_shared;
|
||||
bool validCellSelected = false;
|
||||
|
||||
public:
|
||||
explicit GameGridFrame(std::shared_ptr<GameInfoClass> game_info_get, QWidget* parent = nullptr);
|
||||
void PopulateGameGrid(QVector<GameInfo> m_games, bool fromSearch);
|
||||
bool IsValidCellSelected();
|
||||
|
||||
bool cellClicked = false;
|
||||
int icon_size;
|
||||
|
||||
Reference in New Issue
Block a user