summaryrefslogtreecommitdiff
path: root/src/pluginlist.h
diff options
context:
space:
mode:
authorMikaël Capelle <capelle.mikael@gmail.com>2020-12-31 21:24:29 +0100
committerMikaël Capelle <capelle.mikael@gmail.com>2021-01-02 15:38:18 +0100
commit25a2123e5ffe66715d0a1ec09297ee91a9fcbe1c (patch)
treeb13f943d76833b1c331d63397cf6ed553eeb27c0 /src/pluginlist.h
parentf2d8469ed6cd0fafc22097cdba2ee8f325f00513 (diff)
Move keyboard event to PluginListView.
Diffstat (limited to 'src/pluginlist.h')
-rw-r--r--src/pluginlist.h17
1 files changed, 11 insertions, 6 deletions
diff --git a/src/pluginlist.h b/src/pluginlist.h
index 5f0cef3d..3a5f5412 100644
--- a/src/pluginlist.h
+++ b/src/pluginlist.h
@@ -214,8 +214,6 @@ public:
bool isESPLocked(int index) const;
void lockESPIndex(int index, bool lock);
- bool eventFilter(QObject *obj, QEvent *event);
-
static QString getColumnName(int column);
static QString getColumnToolTip(int column);
@@ -279,10 +277,17 @@ public slots:
**/
void disableAll();
- /**
- * @brief moves selected plugins to specified priority
- **/
- void sendToPriority(const QItemSelectionModel *selectionModel, int priority);
+ // send plugins to the given priority
+ //
+ void sendToPriority(const QModelIndexList& selectionModel, int priority);
+
+ // shift the priority of mods at the given indices by the given offset
+ //
+ void shiftPluginsPriority(const QModelIndexList& indices, int offset);
+
+ // toggle the active state of mods at the given indices
+ //
+ void toggleState(const QModelIndexList& indices);
/**
* @brief The currently managed game has changed