┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/dolphinviewcontainer.h
diff options
context:
space:
mode:
authorPeter Penz <[email protected]>2007-06-10 11:46:41 +0000
committerPeter Penz <[email protected]>2007-06-10 11:46:41 +0000
commit293e65797afd44a530df3435a8cc5b1b024aa3bb (patch)
treeba3fe82f6f4545d953690f9fd174d9c2751cb9cd /src/dolphinviewcontainer.h
parent3e66730d284c2f4a79cc350ae209f05001d798ad (diff)
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
Diffstat (limited to 'src/dolphinviewcontainer.h')
-rw-r--r--src/dolphinviewcontainer.h12
1 files changed, 12 insertions, 0 deletions
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