diff options
| author | Mikaël Capelle <capelle.mikael@gmail.com> | 2020-12-30 23:35:44 +0100 |
|---|---|---|
| committer | Mikaël Capelle <capelle.mikael@gmail.com> | 2021-01-02 15:38:17 +0100 |
| commit | e8c2d9cd29967be928b8649fd580a3be9cae3684 (patch) | |
| tree | 9786455c8d33754c43e0f9228b7122b59ca764b4 /src/modlistcontextmenu.h | |
| parent | 8a88421fd9748f64163f18d8b89ea9d651402014 (diff) | |
More context menu stuff moved.
Diffstat (limited to 'src/modlistcontextmenu.h')
| -rw-r--r-- | src/modlistcontextmenu.h | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/src/modlistcontextmenu.h b/src/modlistcontextmenu.h index bc72fbdf..9d015afc 100644 --- a/src/modlistcontextmenu.h +++ b/src/modlistcontextmenu.h @@ -23,13 +23,21 @@ class ModListContextMenu : public QMenu { Q_OBJECT -private: +public: - friend class ModListView; + // creates a new context menu, the given index is the one for the click and should be valid + // + ModListContextMenu(OrganizerCore& core, const QModelIndex& index, ModListView* modListView); + +private: - // creates a new context menu that will act on the given mod list - // index (those should be index from the modlist) - ModListContextMenu(OrganizerCore& core, const QModelIndexList& index, ModListView* modListView); + // add actions/menus to this menu for each type of mod + // + void addOverwriteActions(OrganizerCore& core, ModListView* modListView); + void addSeparatorActions(OrganizerCore& core, ModListView* modListView); + void addForeignActions(OrganizerCore& core, ModListView* modListView); + void addBackupActions(OrganizerCore& core, ModListView* modListView); + void addRegularActions(OrganizerCore& core, ModListView* modListView); OrganizerCore& m_core; QModelIndexList m_index; |
