diff options
| author | Mikaël Capelle <capelle.mikael@gmail.com> | 2020-12-31 12:34:17 +0100 |
|---|---|---|
| committer | Mikaël Capelle <capelle.mikael@gmail.com> | 2021-01-02 15:38:17 +0100 |
| commit | a105e4c8c881ac720c41ef342769adee14caca47 (patch) | |
| tree | 7556c6f01803e8379153eb1a07659e7839f8d7cb /src/modlistview.h | |
| parent | fcf0aff98b43c9cb3b64c01cd03693e55f82fba7 (diff) | |
Move more stuff from MainWindow. Minor improvements for prev/next button in ModInfoDialog.
Diffstat (limited to 'src/modlistview.h')
| -rw-r--r-- | src/modlistview.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/modlistview.h b/src/modlistview.h index 1678d01e..c7f4e5f0 100644 --- a/src/modlistview.h +++ b/src/modlistview.h @@ -58,11 +58,10 @@ public: ModListViewActions& actions() const;
// retrieve the next/previous mod in the current view, the given index
- // should be a mod index (not a model row), and the return value will be
- // a mod index or -1 if no mod was found
+ // should be a mod index (not a model row)
//
- int nextMod(int index) const;
- int prevMod(int index) const;
+ std::optional<unsigned int> nextMod(unsigned int index) const;
+ std::optional<unsigned int> prevMod(unsigned int index) const;
// check if the given mod is visible
//
@@ -142,6 +141,7 @@ protected slots: void onCustomContextMenuRequested(const QPoint& pos);
void onDoubleClicked(const QModelIndex& index);
+ void onSelectionChanged(const QItemSelection& selected, const QItemSelection& deselected);
private:
|
