game_list: Implement context menu for items in list

* Add a context menu with a "Open Save Data Location" action
This commit is contained in:
MerryMage 2016-12-15 09:55:03 +00:00
parent 351b5d23f4
commit f50dcc88bf
3 changed files with 32 additions and 4 deletions

View file

@ -36,12 +36,15 @@ public:
signals:
void GameChosen(QString game_path);
void ShouldCancelWorker();
void OpenSaveFolderRequested(u64 program_id);
private:
void AddEntry(const QList<QStandardItem*>& entry_items);
void ValidateEntry(const QModelIndex& item);
void DonePopulating();
void PopupContextMenu(const QPoint& menu_location);
QTreeView* tree_view = nullptr;
QStandardItemModel* item_model = nullptr;
GameListWorker* current_worker = nullptr;