diff options
| author | Mikaël Capelle <capelle.mikael@gmail.com> | 2020-12-30 22:56:34 +0100 |
|---|---|---|
| committer | Mikaël Capelle <capelle.mikael@gmail.com> | 2021-01-02 15:38:17 +0100 |
| commit | 8a88421fd9748f64163f18d8b89ea9d651402014 (patch) | |
| tree | c4720283a1d246cc5054fdbbcff7780bb17a1b28 /src/modlistview.h | |
| parent | 07c2badd174059f7cc4ca404c22c6741b679cc7f (diff) | |
Start moving modlist context menu actions to separate structures.
Diffstat (limited to 'src/modlistview.h')
| -rw-r--r-- | src/modlistview.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/modlistview.h b/src/modlistview.h index 8e37161b..d5eea54f 100644 --- a/src/modlistview.h +++ b/src/modlistview.h @@ -13,9 +13,11 @@ namespace Ui { class MainWindow; }
+class FilterList;
class OrganizerCore;
class Profile;
class ModListByPriorityProxy;
+class ModListViewActions;
class ModListView : public QTreeView
{
@@ -35,7 +37,7 @@ public: explicit ModListView(QWidget* parent = 0);
void setModel(QAbstractItemModel* model) override;
- void setup(OrganizerCore& core, Ui::MainWindow* mwui);
+ void setup(OrganizerCore& core, ModListViewActions* actions, Ui::MainWindow* mwui);
// set the current profile
//
@@ -49,6 +51,10 @@ public: //
int sortColumn() const;
+ // retrieve the actions from the view
+ //
+ ModListViewActions& actions() const;
+
// retrieve the next/previous mod in the current view, the given index
// should be a mod index (not a model row), and the return value will be
// a mod index or -1 if no mod was found
@@ -180,6 +186,7 @@ private: OrganizerCore* m_core;
ModListViewUi ui;
+ ModListViewActions* m_actions;
ModListSortProxy* m_sortProxy;
ModListByPriorityProxy* m_byPriorityProxy;
|
