summaryrefslogtreecommitdiff
path: root/src/modlistcontextmenu.h
diff options
context:
space:
mode:
authorJeremy Rimpo <jeremy.rimpo@servermonkey.com>2021-01-27 12:01:09 -0600
committerJeremy Rimpo <jeremy.rimpo@servermonkey.com>2023-09-21 17:22:03 -0500
commit69f953a3fb181eddaf730e83e2ac63ec7f154b14 (patch)
treee11e73e44629d559d240d3ac54d01332aa497388 /src/modlistcontextmenu.h
parent6016b04ef0d458e14f9d556dfc2cd67b2604b83e (diff)
Refactoring for upstream merge
Diffstat (limited to 'src/modlistcontextmenu.h')
-rw-r--r--src/modlistcontextmenu.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/modlistcontextmenu.h b/src/modlistcontextmenu.h
index 320ece93..c2fe5bbf 100644
--- a/src/modlistcontextmenu.h
+++ b/src/modlistcontextmenu.h
@@ -36,7 +36,7 @@ class ModListChangeCategoryMenu : public QMenu
{
Q_OBJECT
public:
- ModListChangeCategoryMenu(CategoryFactory& categories, ModInfo::Ptr mod,
+ ModListChangeCategoryMenu(CategoryFactory* categories, ModInfo::Ptr mod,
QMenu* parent = nullptr);
// return a list of pair <category id, enabled> from the menu
@@ -47,7 +47,7 @@ private:
// populate the tree with the category, using the enabled/disabled state from the
// given mod
//
- bool populate(QMenu* menu, CategoryFactory& categories, ModInfo::Ptr mod,
+ bool populate(QMenu* menu, CategoryFactory* categories, ModInfo::Ptr mod,
int targetId = 0);
// internal implementation of categories() for recursion
@@ -59,7 +59,7 @@ class ModListPrimaryCategoryMenu : public QMenu
{
Q_OBJECT
public:
- ModListPrimaryCategoryMenu(CategoryFactory& categories, ModInfo::Ptr mod,
+ ModListPrimaryCategoryMenu(CategoryFactory* categories, ModInfo::Ptr mod,
QMenu* parent = nullptr);
// return the selected primary category
@@ -69,7 +69,7 @@ public:
private:
// populate the categories
//
- void populate(const CategoryFactory& categories, ModInfo::Ptr mod);
+ void populate(const CategoryFactory* categories, ModInfo::Ptr mod);
};
class ModListContextMenu : public QMenu
@@ -81,7 +81,7 @@ public:
// valid
//
ModListContextMenu(const QModelIndex& index, OrganizerCore& core,
- CategoryFactory& categories, ModListView* modListView);
+ CategoryFactory* categories, ModListView* modListView);
private:
// adds the "Send to... " context menu
@@ -105,7 +105,7 @@ private:
void addRegularActions(ModInfo::Ptr mod);
OrganizerCore& m_core;
- CategoryFactory& m_categories;
+ CategoryFactory* m_categories;
QModelIndex m_index;
QModelIndexList m_selected;
ModListView* m_view;