summaryrefslogtreecommitdiff
path: root/src/modlist.h
diff options
context:
space:
mode:
authorLostDragonist <lost.dragonist@gmail.com>2019-01-22 14:59:07 -0600
committerLostDragonist <lost.dragonist@gmail.com>2019-01-22 14:59:07 -0600
commit7fd81029ce2f67aa7a6555858dfed7d6ac58c4e3 (patch)
tree7cfca3567dbd02aee370ffa68e1cff28f4b37b1c /src/modlist.h
parenta40613f885c18a8a9f090cd88c595bcb960d97c9 (diff)
Reduce file I/O operations when enabling/disabling multiple mods
Diffstat (limited to 'src/modlist.h')
-rw-r--r--src/modlist.h13
1 files changed, 11 insertions, 2 deletions
diff --git a/src/modlist.h b/src/modlist.h
index 42269386..443d583b 100644
--- a/src/modlist.h
+++ b/src/modlist.h
@@ -233,9 +233,18 @@ signals:
* @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
- * @note this signal is currently only used in tutorials
**/
- void modlist_changed(const QModelIndex &index, int role);
+ 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 emitted to have all selected mods deleted