summaryrefslogtreecommitdiff
path: root/src/modlistview.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/modlistview.h')
-rw-r--r--src/modlistview.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/modlistview.h b/src/modlistview.h
index c9588181..53c71458 100644
--- a/src/modlistview.h
+++ b/src/modlistview.h
@@ -79,11 +79,16 @@ public:
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
+ // check if the given mod is visible, i.e. not filtered (returns true
+ // for collapsed mods)
//
bool isModVisible(unsigned int index) const;
bool isModVisible(ModInfo::Ptr mod) const;
+ // focus the view, select the given index and scroll to it
+ //
+ void scrollToAndSelect(const QModelIndex& index);
+
// refresh the view (to call when settings have been changed)
//
void refresh();