summaryrefslogtreecommitdiff
path: root/src/modlistview.h
diff options
context:
space:
mode:
authorMikaël Capelle <capelle.mikael@gmail.com>2020-12-29 20:29:00 +0100
committerMikaël Capelle <capelle.mikael@gmail.com>2021-01-02 15:38:16 +0100
commit6e803a35226980a135d8837898345b38675e3188 (patch)
tree53ec8a99927d3e5f27c7cc5620f1286a9e68a4ae /src/modlistview.h
parent7e2c52133960b7d1bbb0fe72a37cee1c2b67c0ec (diff)
Fix prev/next button in mod info dialog.
Diffstat (limited to 'src/modlistview.h')
-rw-r--r--src/modlistview.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/modlistview.h b/src/modlistview.h
index 1e6c5ceb..7e6b29bb 100644
--- a/src/modlistview.h
+++ b/src/modlistview.h
@@ -105,6 +105,11 @@ protected:
QModelIndex indexModelToView(const QModelIndex& index) const;
QModelIndex indexViewToModel(const QModelIndex& index) const;
+ // returns the next/previous index of the given index
+ //
+ QModelIndex nextIndex(const QModelIndex& index) const;
+ QModelIndex prevIndex(const QModelIndex& index) const;
+
// all index for the given model under the given index, recursively
//
std::vector<QModelIndex> allIndex(