summaryrefslogtreecommitdiffstats
path: root/filesystemwidget.h
diff options
context:
space:
mode:
authorArno <am@disconnect.de>2015-02-13 18:16:11 +0100
committerArno <am@disconnect.de>2015-02-13 18:16:11 +0100
commitd44010d181847c6fa52b828afb0b673c0e9645ab (patch)
tree59cf927a5522646c71bc003d17fdd00d7f66aa5e /filesystemwidget.h
parent6aecc4f8060c72471c80c99a576a7a7e8c74777e (diff)
downloadSheMov-d44010d181847c6fa52b828afb0b673c0e9645ab.tar.gz
SheMov-d44010d181847c6fa52b828afb0b673c0e9645ab.tar.bz2
SheMov-d44010d181847c6fa52b828afb0b673c0e9645ab.zip
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...
Diffstat (limited to 'filesystemwidget.h')
-rw-r--r--filesystemwidget.h1
1 files changed, 1 insertions, 0 deletions
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);