summaryrefslogtreecommitdiff
path: root/src/modlistview.h
diff options
context:
space:
mode:
authorMikaël Capelle <capelle.mikael@gmail.com>2020-12-30 14:39:57 +0100
committerMikaël Capelle <capelle.mikael@gmail.com>2021-01-02 15:38:16 +0100
commit8eb59316f9140a621bc4cf0d06d7b5b898b50972 (patch)
treefe5ce3479f28ae6ff58a05ed2ad975b4b686fec7 /src/modlistview.h
parent1efa793290a533b018271ca8442004e366da58db (diff)
Do not invalidate the sort proxy when not required (keep selection).
Diffstat (limited to 'src/modlistview.h')
-rw-r--r--src/modlistview.h8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/modlistview.h b/src/modlistview.h
index 88028428..1d8a9b49 100644
--- a/src/modlistview.h
+++ b/src/modlistview.h
@@ -80,10 +80,6 @@ signals:
public slots:
- // invalidate the top-level model
- //
- void invalidate();
-
// enable/disable all visible mods
//
void enableAllVisible();
@@ -108,7 +104,9 @@ protected:
// map from/to the view indexes to the model
//
QModelIndex indexModelToView(const QModelIndex& index) const;
+ QModelIndexList indexModelToView(const QModelIndexList& index) const;
QModelIndex indexViewToModel(const QModelIndex& index) const;
+ QModelIndexList indexViewToModel(const QModelIndexList& index) const;
// returns the next/previous index of the given index
//
@@ -117,7 +115,7 @@ protected:
// all index for the given model under the given index, recursively
//
- std::vector<QModelIndex> allIndex(
+ QModelIndexList allIndex(
const QAbstractItemModel* model, int column = 0, const QModelIndex& index = QModelIndex()) const;
// re-implemented to fake the return value to allow drag-and-drop on