diff options
| author | LostDragonist <lost.dragonist@gmail.com> | 2018-10-31 17:05:05 -0500 |
|---|---|---|
| committer | LostDragonist <lost.dragonist@gmail.com> | 2018-10-31 17:05:05 -0500 |
| commit | 5de173ba1ae9531aaca0c0f022a2b0dae1c09250 (patch) | |
| tree | 6f9e415fd63d2aac34a219e18d7505333d921ebd /src/pluginlist.h | |
| parent | eb26120332433c73716531e6eaae798aeae33c1b (diff) | |
Add send to top/bottom options for the plugin list
Diffstat (limited to 'src/pluginlist.h')
| -rw-r--r-- | src/pluginlist.h | 12 |
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;
|
