summaryrefslogtreecommitdiff
path: root/src/modlistview.h
diff options
context:
space:
mode:
authorMikaël Capelle <capelle.mikael@gmail.com>2020-12-31 03:56:58 +0100
committerMikaël Capelle <capelle.mikael@gmail.com>2021-01-02 15:38:17 +0100
commita27656dc7bd14d22d0d8f9fe04f0365f95d81906 (patch)
tree38ecb7a1a864c5519ff7d1a02f6e3ad82b9cdcb2 /src/modlistview.h
parent4f89665056b2256ca353bc27314cd025db2f554c (diff)
Move click event to ModListView. Remove unused slots from MainWindow.
Diffstat (limited to 'src/modlistview.h')
-rw-r--r--src/modlistview.h11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/modlistview.h b/src/modlistview.h
index 4f27769c..e9387cfd 100644
--- a/src/modlistview.h
+++ b/src/modlistview.h
@@ -13,6 +13,7 @@
namespace Ui { class MainWindow; }
+class CategoryFactory;
class FilterList;
class OrganizerCore;
class Profile;
@@ -37,7 +38,7 @@ public:
explicit ModListView(QWidget* parent = 0);
void setModel(QAbstractItemModel* model) override;
- void setup(OrganizerCore& core, ModListViewActions* actions, Ui::MainWindow* mwui);
+ void setup(OrganizerCore& core, CategoryFactory& factory, ModListViewActions* actions, Ui::MainWindow* mwui);
// set the current profile
//
@@ -80,10 +81,6 @@ signals:
void dragEntered(const QMimeData* mimeData);
void dropEntered(const QMimeData* mimeData, DropPosition position);
- // emitted when selected mods must be removed
- //
- void removeSelectedMods();
-
public slots:
// enable/disable all visible mods
@@ -142,6 +139,9 @@ protected:
protected slots:
+ void onCustomContextMenuRequested(const QPoint& pos);
+ void onDoubleClicked(const QModelIndex& index);
+
private:
void onModPrioritiesChanged(std::vector<int> const& indices);
@@ -180,6 +180,7 @@ private:
};
OrganizerCore* m_core;
+ CategoryFactory* m_categories;
ModListViewUi ui;
ModListViewActions* m_actions;