summaryrefslogtreecommitdiff
path: root/src/modlistcontextmenu.h
diff options
context:
space:
mode:
authorMikaël Capelle <capelle.mikael@gmail.com>2021-01-01 20:59:30 +0100
committerMikaël Capelle <capelle.mikael@gmail.com>2021-01-02 15:38:19 +0100
commitc0ac46d5c020bfb9292a812b2c52dc3c6236c7b3 (patch)
tree3e41456b3253e34cb483974faf25577ec05cd60b /src/modlistcontextmenu.h
parentbd76c677307bf2106e0823477739680032a897d4 (diff)
Fix create empty mod/separator position.
Diffstat (limited to 'src/modlistcontextmenu.h')
-rw-r--r--src/modlistcontextmenu.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/modlistcontextmenu.h b/src/modlistcontextmenu.h
index 565aac97..2b3f9dcd 100644
--- a/src/modlistcontextmenu.h
+++ b/src/modlistcontextmenu.h
@@ -19,8 +19,14 @@ class ModListGlobalContextMenu : public QMenu
Q_OBJECT
public:
- ModListGlobalContextMenu(
- OrganizerCore& core, ModListView* modListView, QWidget* parent = nullptr);
+ ModListGlobalContextMenu(OrganizerCore& core, ModListView* view, QWidget* parent = nullptr);
+
+protected:
+
+ friend class ModListContextMenu;
+
+ // creates a "All mods" context menu for the given index (can be invalid).
+ ModListGlobalContextMenu(OrganizerCore& core, ModListView* view, const QModelIndex& index, QWidget* parent = nullptr);
};