From 32e441897fb5dc5d49764c8ce2cb8b3475bcdd20 Mon Sep 17 00:00:00 2001 From: Mikaƫl Capelle Date: Sun, 10 Jan 2021 19:29:41 +0100 Subject: Request window focus when dropping external folder and scroll to new mod. --- src/modlistview.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/modlistview.h') 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 nextMod(unsigned int index) const; std::optional 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(); -- cgit v1.3.1