summaryrefslogtreecommitdiff
path: root/src/pluginlist.h
diff options
context:
space:
mode:
authorLostDragonist <lost.dragonist@gmail.com>2018-10-31 17:05:05 -0500
committerLostDragonist <lost.dragonist@gmail.com>2018-10-31 17:05:05 -0500
commit5de173ba1ae9531aaca0c0f022a2b0dae1c09250 (patch)
tree6f9e415fd63d2aac34a219e18d7505333d921ebd /src/pluginlist.h
parenteb26120332433c73716531e6eaae798aeae33c1b (diff)
Add send to top/bottom options for the plugin list
Diffstat (limited to 'src/pluginlist.h')
-rw-r--r--src/pluginlist.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/pluginlist.h b/src/pluginlist.h
index 03d6426a..009c9153 100644
--- a/src/pluginlist.h
+++ b/src/pluginlist.h
@@ -265,6 +265,16 @@ public slots:
void disableAll();
/**
+ * @brief moves selected plugins to the top (lowest priority)
+ **/
+ void sendToTop(const QItemSelectionModel *selectionModel);
+
+ /**
+ * @brief moves selected plugins to the bottom (highest priority)
+ **/
+ void sendToBottom(const QItemSelectionModel *selectionModel);
+
+ /**
* @brief The currently managed game has changed
* @param gamePlugin
*/
@@ -340,6 +350,8 @@ private:
void fixPriorities();
+ int findPluginByPriority(int priority);
+
private:
std::vector<ESPInfo> m_ESPs;