From d44010d181847c6fa52b828afb0b673c0e9645ab Mon Sep 17 00:00:00 2001 From: Arno Date: Fri, 13 Feb 2015 18:16:11 +0100 Subject: Center on selected directory on startup Center on the selected dir in Filemanager on startup. Unfortunately it's not as straight as one would think. scrollTo doesn't work until the widget is painted, so we have to take a little detour... --- filesystemwidget.h | 1 + 1 file changed, 1 insertion(+) (limited to 'filesystemwidget.h') diff --git a/filesystemwidget.h b/filesystemwidget.h index 0284fb6..efff13a 100644 --- a/filesystemwidget.h +++ b/filesystemwidget.h @@ -70,6 +70,7 @@ class FilesystemWidget : public QWidget { void preview(); void unpack(); void selectUnpackDir(); + void centerCurrent(); private slots: void dirExpanded(const QModelIndex &idx); -- cgit v1.2.3-70-g09d2