From 293e65797afd44a530df3435a8cc5b1b024aa3bb Mon Sep 17 00:00:00 2001 From: Peter Penz Date: Sun, 10 Jun 2007 11:46:41 +0000 Subject: Remember and restore position of viewport when reloading or going back in history (worked already before the DolphinView/DolphinViewContainer split). Minor open issue: the x-position of the Column View is reset to 0... svn path=/trunk/KDE/kdebase/apps/; revision=673498 --- src/dolphinviewcontainer.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'src/dolphinviewcontainer.h') diff --git a/src/dolphinviewcontainer.h b/src/dolphinviewcontainer.h index 1d1a0a389..83ef15944 100644 --- a/src/dolphinviewcontainer.h +++ b/src/dolphinviewcontainer.h @@ -184,6 +184,18 @@ private slots: */ void openContextMenu(KFileItem* item, const KUrl& url); + /** + * Saves the position of the contents to the + * current history element. + */ + void saveContentsPos(int x, int y); + + /** + * Restores the contents position of the view, if the view + * is part of the history. + */ + void restoreContentsPos(); + private: /** * Returns the default text of the status bar, if no item is -- cgit v1.3