┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/dolphinview.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/dolphinview.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/dolphinview.h')
-rw-r--r--src/dolphinview.h20
1 files changed, 5 insertions, 15 deletions
diff --git a/src/dolphinview.h b/src/dolphinview.h
index bcccb7404..ebca53e99 100644
--- a/src/dolphinview.h
+++ b/src/dolphinview.h
@@ -236,18 +236,14 @@ public:
KFileItem* fileItem(const QModelIndex index) const;
/**
- * Returns the x-position of the view content.
- * The content of the view might be larger than the visible area
+ * Sets the upper left position of the view content
+ * to (x,y). The content of the view might be larger than the visible area
* and hence a scrolling must be done.
*/
- int contentsX() const;
+ void setContentsPosition(int x, int y);
- /**
- * Returns the y-position of the view content.
- * The content of the view might be larger than the visible area
- * and hence a scrolling must be done.
- */
- int contentsY() const;
+ /** Returns the upper left position of the view content. */
+ QPoint contentsPosition() const;
/** Increases the size of the current set view mode. */
void zoomIn();
@@ -415,12 +411,6 @@ private slots:
*/
void showPreview(const KFileItem& item, const QPixmap& pixmap);
- /**
- * Restores the x- and y-position of the contents if the
- * current view is part of the history.
- */
- void restoreContentsPos();
-
void emitSelectionChangedSignal();
/**