summaryrefslogtreecommitdiff
path: root/src/modlist.h
diff options
context:
space:
mode:
authorMikaël Capelle <capelle.mikael@gmail.com>2021-01-02 13:03:51 +0100
committerMikaël Capelle <capelle.mikael@gmail.com>2021-01-02 15:40:12 +0100
commitd86dec53822e049954d03ba18473dae08d74040f (patch)
treed8988b81a461175e4a359848b7f5d204fc2beba7 /src/modlist.h
parent65577c71f3e51ae1f029c5fb104782e2a2fdca6d (diff)
Minor refactoring.
Diffstat (limited to 'src/modlist.h')
-rw-r--r--src/modlist.h37
1 files changed, 10 insertions, 27 deletions
diff --git a/src/modlist.h b/src/modlist.h
index e77ceb1f..6d4e0e91 100644
--- a/src/modlist.h
+++ b/src/modlist.h
@@ -270,13 +270,16 @@ public slots:
signals:
- /**
- * @brief Emitted whenever the priority of mods changes
- *
- * The sorting of the list can only be manually changed if the list is sorted by priority
- * in which case the move is intended to change the priority of a mod.
- **/
- void modPrioritiesChanged(std::vector<int> const& index);
+ // emitted when the priority of one or multiple mods have changed
+ //
+ // the sorting of the list can only be manually changed if the list is sorted by priority
+ // in which case the move is intended to change the priority of a mod.
+ //
+ void modPrioritiesChanged(const QModelIndexList& indices);
+
+ // emitted when the state (active/inactive) of one or multiple mods have changed
+ //
+ void modStatesChanged(const QModelIndexList& indices);
/**
* @brief emitted when the model wants a text to be displayed by the UI
@@ -313,26 +316,6 @@ signals:
void modUninstalled(const QString &fileName);
/**
- * @brief emitted whenever a row in the list has changed
- *
- * @param index the index of the changed field
- * @param role role of the field that changed
- * @note this signal must only be emitted if the row really did change.
- * Slots handling this signal therefore do not have to verify that a change has happened
- **/
- void modlistChanged(const QModelIndex &index, int role);
-
- /**
- * @brief emitted whenever multiple row sin the list has changed
- *
- * @param indicies the list of indicies of the changed field
- * @param role role of the field that changed
- * @note this signal must only be emitted if the row really did change.
- * Slots handling this signal therefore do not have to verify that a change has happened
- **/
- void modlistChanged(const QModelIndexList &indicies, int role);
-
- /**
* @brief QML seems to handle overloaded signals poorly - create unique signal for tutorials
*/
void tutorialModlistUpdate();