diff options
| author | Mikaël Capelle <capelle.mikael@gmail.com> | 2020-12-30 14:39:57 +0100 |
|---|---|---|
| committer | Mikaël Capelle <capelle.mikael@gmail.com> | 2021-01-02 15:38:16 +0100 |
| commit | 8eb59316f9140a621bc4cf0d06d7b5b898b50972 (patch) | |
| tree | fe5ce3479f28ae6ff58a05ed2ad975b4b686fec7 /src/modlist.h | |
| parent | 1efa793290a533b018271ca8442004e366da58db (diff) | |
Do not invalidate the sort proxy when not required (keep selection).
Diffstat (limited to 'src/modlist.h')
| -rw-r--r-- | src/modlist.h | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/src/modlist.h b/src/modlist.h index 778f1fee..913d2ea8 100644 --- a/src/modlist.h +++ b/src/modlist.h @@ -218,10 +218,17 @@ public: // implementation of virtual functions of QAbstractItemModel public slots:
void onDragEnter(const QMimeData* data);
- void enableSelected(const QItemSelectionModel *selectionModel);
- void disableSelected(const QItemSelectionModel *selectionModel);
- void moveMods(const QModelIndexList& indices, int offset);
+ // enable/disable mods at the given indices.
+ //
+ void setActive(const QModelIndexList& indices, bool active);
+
+ // shift the priority of mods at the given indices by the given offset
+ //
+ void shiftMods(const QModelIndexList& indices, int offset);
+
+ // toggle the active state of mods at the given indices
+ //
bool toggleState(const QModelIndexList& indices);
signals:
|
