diff options
| author | Mikaël Capelle <capelle.mikael@gmail.com> | 2020-12-30 00:28:48 +0100 |
|---|---|---|
| committer | Mikaël Capelle <capelle.mikael@gmail.com> | 2021-01-02 15:38:16 +0100 |
| commit | 373b659dcbcac5dfc081ca7fa5f78788166a4e39 (patch) | |
| tree | c3ed9de9b64e2a875e4d6cde6d420d05cb743028 /src/modlist.h | |
| parent | 095348c16f58d757f2d9549d06fd12d5ed14a1d2 (diff) | |
Fix and move stuff around.
- Move selection-related code from ModList to ModListView.
- Fix move-selection for multi-selection.
- Fix refresh of mod list on toggle selection.
Diffstat (limited to 'src/modlist.h')
| -rw-r--r-- | src/modlist.h | 19 |
1 files changed, 3 insertions, 16 deletions
diff --git a/src/modlist.h b/src/modlist.h index edf7d53a..778f1fee 100644 --- a/src/modlist.h +++ b/src/modlist.h @@ -221,6 +221,9 @@ public slots: void enableSelected(const QItemSelectionModel *selectionModel);
void disableSelected(const QItemSelectionModel *selectionModel);
+ void moveMods(const QModelIndexList& indices, int offset);
+ bool toggleState(const QModelIndexList& indices);
+
signals:
/**
@@ -291,11 +294,6 @@ signals: void tutorialModlistUpdate();
/**
- * @brief emitted to have all selected mods deleted
- */
- void removeSelectedMods();
-
- /**
* @brief fileMoved emitted when a file is moved from one mod to another
* @param relativePath relative path of the file moved
* @param oldOriginName name of the origin that previously contained the file
@@ -316,11 +314,6 @@ signals: // download list
void downloadArchiveDropped(int row, int priority);
-protected:
-
- // event filter, handles event from the header and the tree view itself
- bool eventFilter(QObject *obj, QEvent *event);
-
private:
QVariant getOverwriteData(int column, int role) const;
@@ -344,12 +337,6 @@ private: MOBase::IModList::ModStates state(unsigned int modIndex) const;
- bool moveSelection(QAbstractItemView *itemView, int direction);
-
- bool deleteSelection(QAbstractItemView *itemView);
-
- bool toggleSelection(QAbstractItemView *itemView);
-
private slots:
private:
|
