blob: bc72fbdfe0b72e0c495818473eb675d67ffb72c7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
#ifndef MODLISTCONTEXTMENU_H
#define MODLISTCONTEXTMENU_H
#include <vector>
#include <QMenu>
#include <QModelIndex>
#include <QTreeView>
class ModListView;
class OrganizerCore;
class ModListGlobalContextMenu : public QMenu
{
Q_OBJECT
public:
ModListGlobalContextMenu(OrganizerCore& core, ModListView* modListView, QWidget* parent = nullptr);
};
class ModListContextMenu : public QMenu
{
Q_OBJECT
private:
friend class ModListView;
// 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);
OrganizerCore& m_core;
QModelIndexList m_index;
};
#endif
|